Vehicle

  • Vehicle is an abstract class extending Object and represents the mode of transportation for customers.

  • It includes a nested VehicleType annotation to specify the type of vehicle.

  • A public constructor Vehicle() is available for creating Vehicle instances.

  • Inherited methods from Object like equals(), hashCode(), and toString() are also applicable to the Vehicle class.

public abstract class Vehicle extends Object

The vehicle used for customer transportation.

Nested Class Summary

@interface Vehicle.VehicleType The type of vehicle. 

Public Constructor Summary

Inherited Method Summary

Public Constructors

public Vehicle ()