Why Animal is a superclass to Lion but Vehicle is a interface that Car implements?

Viewed 26

We have 2 Kinds of Relationship:

  1. Animal- Lion (Superclass-Subclass)
  2. Vehicle - Car (Interface- Class that implements it)

Why Animal is a superclass to Lion but Vehicle is a interface that Car implements?

0 Answers
Related