This project implements a Java program that manages different types of vehicles, including internal combustion engine vehicles (ICEV), battery electric vehicles (BEV), and hybrid vehicles (HybridV). The program demonstrates object-oriented principles such as inheritance, abstract methods, and class hierarchies.
- Engine Class:
- Base class for different types of engines (
CombustionEngine,ElectricEngine,HybridEngine).
- Base class for different types of engines (
- Manufacture Class:
- Stores information about the manufacturer (name, country).
- Vehicle Class:
- Abstract class representing a vehicle with an abstract method
ShowCharacteristics(). - Subclasses:
ICEV(Internal Combustion Engine Vehicle)BEV(Battery Electric Vehicle)HybridV(Hybrid Vehicle)
- Abstract class representing a vehicle with an abstract method
- Main Class (
VehicleManager):- Creates and manages an array of
Vehicleobjects and displays their characteristics.
- Creates and manages an array of
- Java Version: OpenJDK 11
- IDE: IntelliJ IDEA 2023.1 / Eclipse / Visual Studio Code
- Operating System: Windows 10 / Linux Ubuntu 20.04
- Clone the repository from GitHub.
- Compile and run the
VehicleManager.javafile. - The characteristics of each vehicle (ICEV, BEV, HybridV) will be displayed in the console.
Engine.java: Base class for different engine types.Manufacture.java: Class for the manufacturer details.Vehicle.java: Superclass with subclassesICEV,BEV,HybridV.VehicleManager.java: Main class to demonstrate vehicle characteristics.README.md: This file containing the project description.