Please enable JavaScript to use CodeHS

CodeHS Glossary


Class Hierarchy Java

Class hierarchy refers to the arrangement of classes and how they relate to each other. If we had 3 classes, Rectangle, Circle, and Triangle, that all extended the Shape class, then those 3 classes would all be below the Shape class in the class hierarchy, and Shape would be at the top of the class hierarchy.