|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.ObjectLift
This class models a device that gets people to the top of a ski trail.
| Constructor Summary | |
Lift(String liftType)
Initialize a new Lift object. |
|
| Method Summary | |
String |
toString()
Return a string description of this lift. |
void |
zoom(Skier theSkier)
Transport a Skier to the top of the Lift. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
public Lift(String liftType)
liftType - the type of lift: "carpet", "rope", "chair"| Method Detail |
public void zoom(Skier theSkier)
theSkier - the person to transportpublic String toString()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||