





Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
This page cannot be seen from the preview
Don't miss anything!






1
Lecture - XXIV April 20th, 2006
2
3
4
Goals:
7
8
9
10
13
14
s.print_label();
p.print_label();
//calls person::print_label(s) //calls person::print_label(p)
15
Suppose:
s.print_label();
p.print_label();
//calls student::print_label(s) //calls professor::print_label(p)
16
Suppose:
x->print_label(); y->print_label();
x, y: person s: student p: professor
Does the choice depend on the type of x & y, or on the type of object they refer?