Hi guys whats wrong with this code?
class Main { public static void main(String[] args) { Scanner myVar = Scanner (System.in); Vehicle vehicle = new Vehicle(); Vehicle electric = new ElectricVehicle(); Vehicle hybrid = new HybridVehicle(); //calls vehicle.start(); vehicle.resource(); electric.start(); electric.resource(); hybrid.start(); hybrid.resource(); } } class Vehicle{ public void start(){ System.out.println("Starting"); } public void resource(){ System.out.println("I use petrol"); } } class ElectricVehicle extends Vehicle{ public void start(){ System.out.println("Starting"); } public void resource(){ System.out.println("I use electricity"); /*reimplement resource() method to output "I use electricity"*/ } class HybridVehicle extends Vehicle{ public void start(){ System.out.println("Starting"); } public void resource(){