home *** CD-ROM | disk | FTP | other *** search
/ C/C++ Users Journal 1990 - 1995 / CUJ.iso / image90 / 9008f2d2.pcx (.png) < prev    next >
PC Paintbrush Image  |  1996-01-31  |  22KB  |  333x287  |  4-bit (4 colors)
Labels: text | diagram | screenshot | line | parallel | plan | technical drawing | font | black and white | schematic
OCR: A view of run time binding via virtual functions Pie_obj vibl *p Pie_obj :: cost() Dessert *pl = new Pie_obj ;. Pie_ubj :: discount!} vtbl is a table of function pointers Cake obj vibl p= Dessert *p2 = new Cake_nbj :. .. Cake_obj=c01() Dessert:discounti ) Dessert *p.3 = new Cake_uby: because none supplied in Cake _obj Cake_obj Only one vtbl needed for vtbl 'p all Cake_abj's