1.

Which among the following is best definition of a derived class?(a) A child class(b) A class which inherits one or more classes(c) A class with keyword derived(d) A class with more than one constructorI have been asked this question in semester exam.Enquiry is from Derived Class topic in chapter Classes of Object Oriented Programming

Answer»

Correct answer is (B) A CLASS which INHERITS one or more classes

The best I can explain: Any class which inherits one or more classes is a DERIVED class. The only condition is it MUST inherit at least one class in order to be called as a derived class.



Discussion

No Comment Found

Related InterviewSolutions