Truth Table (AND)
| || |
- The class Car inherits Vehicle. Hence, it will inherit all the function/method including drive.
- There is no need to define any function in Pickup_Truck because all the functions can be inherited from both the super classes
- During initialisation, we have to take in all relevant arguments and call the super class init
- Calling superclass function:
Help Us Go Positive!
We offset our carbon usage with Ecologi. Click the link below to help us!