You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In this assignment, you are going to write four related classes (plus the main() program), RailroadCar, TankCar, BoxCar, and RefrigeratorCar. Using class inheritance and polymorphism, you are going to write a well-organized object-oriented Java program.