1.

The abstract method definition can be made ___________ in derived class.(a) Private(b) Protected(c) Public(d) Private, public, or protectedI have been asked this question during an online interview.My question is based upon Abstract Function topic in chapter Member Functions & its Types of Object Oriented Programming

Answer»

Right answer is (d) Private, public, or protected

Best explanation: The DERIVED class implements the definition of the abstract METHODS of BASE class. Those can be MADE private in derived class if security is NEEDED. There won’t be any problem in declaring it as private.



Discussion

No Comment Found

Related InterviewSolutions