Content deleted Content added
Reverted 1 edit by 199.185.67.2 (talk) to last revision by Nihiltres |
new section: See also |
||
Line 8:
The class hierarchy can be as deep as needed. The Instance variables and methods are inherited down through the levels and can be redefined according to the requirement in a subclass. In general, the further down in the hierarchy a class appears, the more specialized its behavior. When a message is sent to an object, it is passed up the inheritance tree starting from the class of the receiving object until a definition is found for the method. This process is called upcasting.
==See also==
* [[Multiple inheritance]]
* [[Composition over inheritance]]
==References==
|