/**
 * Demonstrates extension of a class that implements an interface.
 * Shows what happens if have a staticMethod -- inherited but not overridden.
 * Prints Car's static method
 */
public class Electric extends Car {
    
    /**
     * Creates an Electic car with a MPG of 200
     */
    public Electric() {
        super(200);
        tankSize = 0;
    }
    
    public int getTankSize() {
        System.out.println("Electric's getTankSize()");
        return tankSize;   
    }
    
    public static void main(String args[]) {
        Electric car = new Electric();
        car.move(1, 1);
        System.out.println(car);
        
        System.out.println(SPEED_LIMIT);
        System.out.println(car.getTankSize());
        System.out.println(staticMethod()); // calls Car's static method
    }
}

