All Classes and Interfaces
Class
Description
Lightweight Vehicle implementation representing a bike.
Concrete Vehicle implementation representing a car.
Small post-lecture demo showcasing:
- inheritance (Vehicle -> Car/Bike/ElectricCar)
- abstract classes and partial implementations (Vehicle.description())
- interfaces (+ default methods) and multiple inheritance (Drivable, Electric, Maintainable)
- delegation (Driver -> Drivable)
- covariant returns (copy())
- static method hiding (category())
Drivable capability contract.
Simple service object illustrating delegation: the driver delegates
driving operations to a Drivable vehicle it holds.
Marker interface for electric vehicles.
Electric bike: lightweight electric vehicle.
Concrete Vehicle representing an electric car.
Maintenance capability contract used to demonstrate default-method conflicts
and their resolution when combined with other interfaces.
Composition-centric example: a Manufacturer produces Vehicles.
Abstract motor vehicle: vehicles with an engine/motor.
Contract for vehicles that can be recharged.
Contract for vehicles that can be refueled.
Service car combining Car's drivable features with maintenance checks.
Abstract domain type for TP2 examples.