Can an object subclass other object? | Sololearn: Learn to code for FREE!
+ 3

Can an object subclass other object?

26th Feb 2019, 7:48 AM
Sin Cos √ė
Sin Cos √ė - avatar
3 Réponses
+ 3
A class can extend or be the subclass of another class. Objects are instances of classes. So you can have objects of the (super)class and objects of the subclass.
28th Feb 2019, 3:53 AM
Sonic - avatar
im currently learning c++ instead of java.. but i think the fundamental is the same.. Yes, an object can be within an another object.. such as an object in an object.. ^_^
27th Feb 2019, 12:48 PM
Xtron135 - avatar
28th Feb 2019, 3:05 AM
Christian Paez
Christian Paez - avatar