題組內容

5. (10%) Consider the following class definitions using inheritance in C++.
63c0b776988c4.jpg

(b) After the execution of the main program, what will be displayed on the screen? Hint: beware of the member function overriding during the inheritance. (5%)