How any class extends Object. | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 3

How any class extends Object.

If object class extend, how we are able to extend other class.

6th May 2017, 9:19 PM
Ramu Vurimi
Ramu Vurimi - avatar
7 Answers
+ 16
@NimWing Valentine the cat says you are great
6th May 2017, 10:16 PM
‎‏‎‏‎Joe
‎‏‎‏‎Joe - avatar
+ 14
# Claudio Vidal : 👍👍
6th May 2017, 10:09 PM
NimWing Yuan
NimWing Yuan - avatar
+ 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 😻.
6th May 2017, 10:30 PM
NimWing Yuan
NimWing Yuan - avatar
+ 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
6th May 2017, 9:43 PM
Edward
+ 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 🐕
6th May 2017, 9:33 PM
⏩▶Clau◀⏪
⏩▶Clau◀⏪ - avatar
+ 4
@nimwing yuan I support you !! 😁 be happy!!!
6th May 2017, 10:12 PM
⏩▶Clau◀⏪
⏩▶Clau◀⏪ - avatar
+ 3
@joe you are great too!!! 😁
6th May 2017, 10:17 PM
⏩▶Clau◀⏪
⏩▶Clau◀⏪ - avatar