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.
Modify the client code so that it uses message boxes for output instead of standard out.
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 ]
Generated: 2012-03-02 | © 2012 Alan Ezust and Paul Ezust. |