package abstractFactory.americanFleet;
import abstractFactory.Bus;
import abstractFactory.Car;
public class CityJet
extends Bus
implements Cloneable { public CityJet
(String number,
int passengerNum
) { super(number, 2, 8, passengerNum + 1, 200, passengerNum, true);
}
//equals/hashCode/toString >>
public boolean equals
(Object o
) { if (!(o instanceof Car)) {
return false;
}
if (!(o instanceof CityJet)) {
return o.equals(this);
}
//CityJet other = (CityJet) o;
return (super.equals(o));
}
public int hashCode() {
int res = super.hashCode();
return res;
}
String res =
super.
toString();
return res;
}
}