YCP Logo Lab 6: Inheritance and Polymorphism

Due: Friday, September 19th by 11:59 PM

Start by downloading CS201_Lab6.zip and importing it into Eclipse. You should see a project called CS201_Lab6.

Your Task

Add classes called Boat and Airplane. They should have the following behavior:

  • A legal trip for a Boat must start and end at a marina, and must not contain any hops over terrain other than water or marina.
  • A legal trip for an Airplane must start and end at an airport, but may continue through any kind of terrain.

Add new JUnit test classes called BoatTest and AirplaneTest that test Boat and Airplane objects (respectively) against both legal and illegal trips.

You can use the provided Car and CarTest classes as a guide.


When you are done, save the project (CS201_Lab6) to a zip file by right-clicking it and choosing

Export...->Archive File

Upload the saved zip file to the Marmoset server as lab6. The server URL is