/* Author : Michael Robinson Program : TheVehiclesMain.java Purpose : This is a super-class which also is a sub-class of another super-class. This class contains one variable and multiple methods which will be inherited by other sub-classes: double gpa = 4.00; public static void showSportCars() public static void polyCar() Updated : September 12, 2099 */ public class TheVehiclesMain { double gpa = 4.00; public static void showSportCars() { //calls tires method which is inside SportCarSBClass SportCarSBClass.tires(); //calls mpg method which is inside MiniCarSBClass MiniCarSBClass.mpg(); }//end public static void showSportCars() public static void polyCar() { //calls method capacity() inside object clone1 but //since class MiniCarSBClass() inherits from //VehicleSPClass super-class, the method capacity() //can be in the super-class and/or the sub-class VehicleSPClass clone1 = new MiniCarSBClass(); clone1.capacity(); }//end public static void polyCar() public static void main( String arg[] ) { showSportCars(); polyCar(); SportCarSBClass.myInfo(); SportCarSBClass.doors(); }//end public static void main( String arg[] ) }//end public class TheVehiclesMain