package javaaplication3; class supersonicwarjet{ private int speed=500; public int changeSpeed(int changeSpeed){ speed= speed + changeSpeed; return speed; } private int height=10000; public int changeHeight(int changeHeight){ height= height + changeHeight; return height; } private int rockets=10; public int amountOfRockets(int amountOfRockets){ rockets= rockets + amountOfRockets; return rockets; } public String pilot(){ String pilot="Mr.Anderson"; return pilot; } }////close class jet /////////////////////////// different object public class objectproject { public static void main(String [] args){ supersonicwarjet jet = new supersonicwarjet(); System.out.println("how fast is the jet moving"); System.out.println("jet moving at "+ jet.changeSpeed(0)); System.out.println("What the altitude of the jet"); System.out.println("the altitude of the jet is "+ jet.changeHeight(0)); System.out.println("how amny rockets does the jet hold "); System.out.println("the amount the jet holds is "+ jet.amountOfRockets(0)); System.out.println("who run this magnificant jet????? "); System.out.println(jet.pilot()); } }