• Write a program to model MBTA vehicles
• Three types of vehicles: Bus, Urban Rail,
and Commuter Rail
• Three kinds of Right-of-Way: Dedicated,
Shared, and Mixed (Hybrid)
Problem Set 5
• This homework tests your knowledge of inheritance. Your
solution must inherit as much as possible from the superclasses
and/or interfaces.
• Be sure to use at least one of EACH of the following in your
solution: abstract class, interface, abstract method, final method.
• Hint: The trick is to determine if the set of Route Types and
ROW Types should be Interfaces or Classes (Inheritance
structure)
- Which Types require “multiple inheritance”?