- 1
concept of ineritance to demonstrate Vehicle and Car
3 odpowiedzi
+ 6
A Car is a Vehicle, so in terms of inheritance, Vehicle would be the base class and Car would inherit from Vehicle.
+ 3
In python:
class Car(Vehicle):
+ 1
class Car extends Vehicle { }