1.

In multi-level inheritance(all public), the public members of parent/superclass will ________(a) Will continue to get inherited subsequently(b) Will not be inherited after one subclass inheritance(c) Will not be available to be called outside class(d) Will not be able to allocated with any memory spaceThe question was asked in my homework.My doubt is from Public Access Specifier topic in portion Access Specifiers of Object Oriented Programming

Answer»

Correct OPTION is (a) Will continue to get inherited subsequently

Easiest explanation - The public INHERITANCE makes the public members of the base class, public in derived CLASSES. This can be USED when the same feature have to be redefined with each new class inheriting the base class.



Discussion

No Comment Found

Related InterviewSolutions