Content deleted Content added
ConnerAlex (talk | contribs) Reference edited with ProveIt adding reference |
Changing short description from "classification of object types" to "Classification of objects in programming" |
||
(8 intermediate revisions by 8 users not shown) | |||
Line 1:
{{Short description|Classification of objects in programming}}
The concept of class hierarchy in computer science is very similar to [[Taxonomy (biology)|taxonomy]], the classifications of species.
The relationships are specified in the science of [[object 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==
|