- 1

concept of ineritance to demonstrate Vehicle and Car

25th Oct 2019, 1:39 AM
Francis Omachi
Francis Omachi - avatar
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.
25th Oct 2019, 3:15 AM
Hatsy Rei
Hatsy Rei - avatar
+ 3
In python: class Car(Vehicle):
3rd Aug 2022, 10:10 AM
Pulathisi Kariyawasam
+ 1
class Car extends Vehicle { }
15th Nov 2021, 5:43 AM
Nabila Muftia Ma'ruf Kartono
Nabila Muftia Ma'ruf Kartono - avatar