I'm so confused and I really need someone's assistance. I cant express how much I'd appreciate it.
here is my code!
public class Airplane {
private String make;
private String model;
private int year;
public Airplane() {
this.make = "Boeing";
this.model = "qtr";
this.year = 1999;
}
public Airplane( String make,
String model,
int year ) {
this.make = make;
this.model = model;
this.year = year;
}
public Airplane( String name) {
this.make = make;
this.model = model;
this.year = 2003;
}
public String getMake() {
return this.make;
}
public int getModel() {
return this.model;
}
public int getYear() {
return this.year;
}
public void setMake( String make ) {
this.make = make;
}
public void setModel ( String model ) {
this.model = model;
}
public void accelerat() {
}
public String toString() {
String out = "This is an Airplane. ";
out += "Its make is " + this.make + ". ";
out += "Its model is " + this.model + ". ";
out += "Its year is " + this.year + ".";
return out;
}
public String airplaneTester(String make) {
Airplane thePlane = new Airplane(make);
this.make("Boeing");
this.model("qtr");
this.year(2005);
return thePlane.toString();
}
public static void main( String[] args) {
System.out.print.ln(thePlane);
}
}
Please help me! Thanks in advance