Can an object subclass other object? | SoloLearn: Learn to code for FREE!

+2

Can an object subclass other object?

2/26/2019 7:48:38 AM

Saransh Chauhan

3 Answers

New Answer

+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.

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.. ^_^

0