1.

Which class is used to design the base class?(a) abstract class(b) derived class(c) base class(d) derived & base class

Answer» Right option is (a) abstract class

For explanation: Abstract class is used to design base class because functions of abstract class can be overridden in derived class hence derived class from same base class can have common method with different implementation, hence forcing encapsulation.


Discussion

No Comment Found

Related InterviewSolutions