A class hierarchy or inheritance tree in computer science is a classification of object types, denoting objects as the instantiations of classes (class is like a blueprint, the object is what is built from that blueprint) inter-relating the various classes by relationships such as "inherits", "extends", "is an ...
What is class hierarchy example?
For example, we defined the Food class, and then several specializations, such as the Meat and Fruit classes. We have also seen that a class hierarchy represents "is-a" relationships. Each instance of a subclass is also an instance of the parent class and all ancestors.
How do you find the hierarchy of a class?
To view a type in the Type Hierarchy view: Through the "Open Type in Hierarchy" wizard: Press Ctrl+Shift+H -or- from the Menu Bar go to Navigate | Open Type in Hierarchy. The "Open Type in Hierarchy" dialog is displayed.