vehicles.motorcycle

Classes

Motorcycle

Motorcycle class inheriting from Vehicle.

Module Contents

class vehicles.motorcycle.Motorcycle(make, model, year, mileage, fuel_consumption, engine_capacity: float)[source]

Bases: vehicles.vehicle.Vehicle

Motorcycle class inheriting from Vehicle.

engine_capacity
display_info()[source]

Abstract method to display vehicle information.

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

Honk the motorcycle horn.