vehicles.truck

Classes

Truck

Truck class inheriting from Vehicle.

Module Contents

class vehicles.truck.Truck(make, model, year, mileage, fuel_consumption, load_capacity: float)[source]

Bases: vehicles.vehicle.Vehicle

Truck class inheriting from Vehicle.

load_capacity
display_info()[source]

Abstract method to display vehicle information.

calculate_fuel_efficiency()[source]
honk()[source]

Honk the truck horn.