We have 2 Kinds of Relationship:
Animal- Lion (Superclass-Subclass)Vehicle - Car (Interface- Class that implements it)
Why Animal is a superclass to Lion but Vehicle is a interface that Car implements?
We have 2 Kinds of Relationship:
Animal- Lion (Superclass-Subclass)Vehicle - Car (Interface- Class that implements it)Why Animal is a superclass to Lion but Vehicle is a interface that Car implements?