1.

What is Inheritance in C++?(a) Wrapping of data into a single class(b) Deriving new classes from existing classes(c) Overloading of classes(d) Classes with same names

Answer» Correct answer is (b) Deriving new classes from existing classes

The best explanation: Inheritance is the concept of OOPs in which new classes are derived from existing classes in order to reuse the properties of classes defined earlier.


Discussion

No Comment Found

Related InterviewSolutions