C++ Multiple, Multilevel and Hierarchical Inheritance. ... Inheritance is one of the core feature of an object-oriented programming language. It allows software developers to derive a new class from the existing class. The derived class inheritsthe features of the base class (existing class).
What are the base and derived classes?
A base class is a class, in an object-oriented programming language, from which other classes are derived. It facilitates the creation of other classes that can reuse the code implicitly inherited from the base class (except constructors and destructors). A programmer can extend base class functionality by adding or overriding members relevant to the derived class.
derived Classes ???
Any class type (whether declared with class-key
class
or struct
) may be declared as derived from one or more base classes which, in turn, may be derived from their own base classes, forming an inheritance hierarchy.
0 comments:
Post a Comment