Java, Programming, Object Oriented Design, Objectorientedprogramming, Oop.
starting."); } @Override public void stop() { System.out.println(model + " is stopping."); } } public class Main { public static void main(String[] args) { Vehicle car = new Car("Tesla Model S"); Vehicle bike = new Bike("Ducati Monster"); car.start(); // Output: Tesla Model S is starting.