|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.ObjectCar
This class models the Cars that can be parked in a ParkingLot.
| Constructor Summary | |
Car(String brand,
int modelYear)
Remember the brand and year. |
|
| Method Summary | |
String |
getBrand()
Return the brand name of this Car. |
int |
getYear()
Return the model year of this Car. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public Car(String brand,
int modelYear)
brand - the brand name of the manufacturer (eg, Ford)modelYear - the marketing year of this car| Method Detail |
public String getBrand()
public int getYear()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||