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 ответов
+ 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
Sonic - avatar
0
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
Xtron135 - avatar
0
YES
28th Feb 2019, 3:05 AM
Christian Paez
Christian Paez - avatar