Class Lift

java.lang.Object
  extended byLift

public class Lift
extends Object

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

Lift

public Lift(String liftType)
Initialize a new Lift object.

Parameters:
liftType - the type of lift: "carpet", "rope", "chair"
Method Detail

zoom

public void zoom(Skier theSkier)
Transport a Skier to the top of the Lift. This method sets the atTop property of the skier to true.

Parameters:
theSkier - the person to transport

toString

public String toString()
Return a string description of this lift.

Returns:
a String description of this lift.