1.

What does inheritance allow you to do?(a) create a class(b) create a hierarchy of classes(c) access methods(d) create a method

Answer» The correct choice is (b) create a hierarchy of classes

For explanation: Inheritance helps in creating hierarchy of classes by making connections between different classes in which one is called base class and other is class derived class.


Discussion

No Comment Found

Related InterviewSolutions