public class Plane {
private String FlightNumber;
private String Location;
private boolean isLanding;
private int ScheduledTime;
private static int TotalPlanes;
public Plane(String FlightNumber, String Location){
this.FlightNumber = FlightNumber;
this.Location = Location;
Plane.TotalPlanes++;
}
public String getFlightNumber(){
return this.FlightNumber;
}
public void setFlightNumber(String f){
this.FlightNumber = f;
}
public String getLocation(){
return this.Location;
}
public void setLocation(String l){
this.Location = l;
}
public static int getTotalPlanes(){
return Plane.TotalPlanes;
}
public boolean
i wrote this far and i like to use boolean but i need to write with isLanding wheather it lands or take offs.
something like
public boolean isLanding(Plane c) {
return this.Plane.equals(c.Plane);
how should i write..?