1 // class that implements types of aircrafts
6 double maxLift, maxThrust;
8 public Aircraft(String t, double maxL, double maxT)
15 boolean hasType(String type0)
17 return (type.compareTo(type0)==0);
20 public String toString()
22 return new String("Airplane: "+type+" "+maxLift+" "+maxThrust);