Multiple inheritance is the process by which one class can inherit the properties of two or more classes 640-863 (variously known as its base classes, or parent classes, or ancestor classes, or super classes).
In some similar language, multiple inheritance is restricted in various ways to keep the language simple, such as by allowing inheritance from only one real class and a number of "interfaces", 642-446 or by completely disallowing multiple inheritance. C++ places the full power of multiple inheritance in the hands of programmers, but it is needed only rarely, and (as with most techniques) can complicate code if used inappropriately. Because of C++'s approach to multiple inheritance, C++ has no need of separate language facilities for "interfaces"; C++'s 642-552 classes can do everything that interfaces do in some related languages.
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment