1.

How to make a derived class a base class?(a) Change name of the class(b) Use keyword base(c) Make a class derive from it(d) Can’t be doneThe question was asked in exam.The origin of the question is Base Class topic in division Classes of Object Oriented Programming

Answer»

Right option is (c) Make a class DERIVE from it

Easy explanation - MAKING another class derive from it will make that class as base class. It is not necessary that we have to write DIFFERENT code for it. If at least one class DERIVES that class, it becomes the base class for the new class.



Discussion

No Comment Found

Related InterviewSolutions