6.1.2. Exercises: Simple Derivation

  1. Build and run the Student application described in Section 6.1 and Section 6.1.1. Then remove the base class initializer from the Undergrad constructor. Describe and explain what happens when you try to build the application.

  2. Modify the client code so that it uses message boxes for output instead of standard out.

  3. Modify the application so that the finish() function checks the year of any Undergrad student and gives a more appropriate message. For example, it does not make sense for a Freshman, Sophomore, or Junior to apply for graduation. How should GradStudents be handled?

[ fromfile: inheritance-intro.xml id: None ]