1.

The abstract methods can never be ___________ in a base class.(a) Private(b) Protected(c) Public(d) DefaultI have been asked this question during an interview.The question is from Abstract Function in division Member Functions & its Types of Object Oriented Programming

Answer»

The CORRECT OPTION is (a) Private

The explanation is: The base class must not contain the abstract methods. The methods have to be derived and defined in derived class. But if it is MADE private it can’t be inherited. HENCE we can’t declare it as a private member.



Discussion

No Comment Found

Related InterviewSolutions