Consider the person_interface and system_user_interface classes described in Example C 10.62. If student is derived from person_interface

Question:

Consider the person_interface and system_user_interface classes described in Example C 10.62. If student is derived from person_interface and system_ user_interface, explain what happens in the following method call:

student s;
person *p = &s;
...
p->print_stats();

You may wish to use a diagram of the representation of a student object to illustrate the method lookups that occur and the views that are computed. You may assume an implementation akin to that of Figure C 10.10, without shared inheritance.

Fantastic news! We've Found the answer you've been seeking!

Step by Step Answer:

Related Book For  book-img-for-question
Question Posted: