2023-02-23 16:03:51 +02:00
|
|
|
|
package encapsulationInheritancePolymorphism.inheritance;
|
|
|
|
|
|
|
|
|
|
public class Main {
|
|
|
|
|
public static void main(String[] args) {
|
2023-03-02 14:41:44 +02:00
|
|
|
|
ElectricEngine electricEngine = new ElectricEngine(); // створення нового об'єкту (екземпляру) класу ElectricEngine
|
|
|
|
|
FuelEngine fuelEngine = new FuelEngine();
|
2023-02-23 16:03:51 +02:00
|
|
|
|
}
|
|
|
|
|
}
|