CSE 333 25sp Exercise 13

out: Wednesday, May 7, 2025
due: Monday, May 12, 2025 by 10:00 am, No late exercises accepted.

Goals: Write a program using C++ inheritance to explore how to create and use C++ classes and subclasses.

Description: Write a C++ program with the following classes:

Hint: The std::stringstream class can be useful for implementing the ToString methods. It supports writing values to a string with the << stream output operator.

Hint: A reasonable ToString function should return a string identifying the type of the object and values of its instance variables.


Your code must:

You should submit your exercise using the Gradescope dropbox linked on the course resources web page.