![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
Because the Vegetable
class is directly under the Food
class
in the class hierarchy, with no other class in between, the
Vegetable
class is said to be a direct subclass of the
Food
class, and the Food
class is said to be the direct
superclass of the Vegetable
class.