+ 3
How any class extends Object.
If object class extend, how we are able to extend other class.
7 ответов
+ 16
@NimWing Valentine the cat says you are great
+ 14
# Claudio Vidal : 👍👍
+ 13
# Claudio Vidal : I will also support you, allthough I am a small creature 🐈.
#Joe : Thanks, Valentine the cat, I am great and you look lovely 😻.
+ 6
every class has Object as its superclass. it is extended implicitly, so it leaves room for you to explicitly extend up to one class
+ 5
actually a class can extend another class
example
the class dog extends the class animal
a class can be instantiate, example
the object 'puppy' instantiate the class dog
then puppy is a dog 🐕
+ 4
@nimwing yuan I support you !!
😁 be happy!!!
+ 3
@joe you are great too!!! 😁