|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.ObjectSkiWeekend
This class models a skiing weekend at a CSE 142 ski resort.
| Constructor Summary | |
SkiWeekend()
Establish the details about the resort for this weekend event. |
|
| Method Summary | |
void |
saturday()
This method controls the events that take place at the SkiResort on the first day of a SkiWeekend. |
void |
sunday()
This method controls the events that take place at the SkiResort on the second day of a SkiWeekend. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public SkiWeekend()
In order to create a new SkiResort object, you need to define all the parameters for the SkiResort constructor. This includes three Trail objects. The Trails each require a Lift. So this constructor builds several Lifts (of different types), then uses those to build Trails (with varying difficulty levels), then uses the new Trails to build a SkiResort.
Keep a reference to the new SkiResort object in an instance variable so that you can use it later in the saturday() and sunday() methods.
| Method Detail |
public void saturday()
public void sunday()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||