home *** CD-ROM | disk | FTP | other *** search
/ C by Discovery (4th Edition) / C_By_Discovery_4th_Edition.tar / C_By_Discovery_4th_Edition / CH_12 / 729.jpg < prev    next >
Joint Photographic Experts Group Image  |  2013-12-12  |  587KB  |  2550x3300
Labels: book | poster | reckoner
OCR: 12.5 C++ and OOP Inheritance 729 Note 5:The rawa loyee function pr int is called by the manager function \n" pri int This is effected with the scope resolution operator. another example of code reuse in C++ Learning Activities 24 There should be a copy are class sev has constructor as well and as an class overloaded emp loyee. assignment Add operator for cl lass manager the prototypes to the header file employee.h iand the implementa- tion to the file employee cpp. Try to reuse code possible Example 12-19: tstemply.cpp tstemply cpp Synops Instantiates an empl lovee and manager. Prints informat: UOT about both Makes the empl oyee part of the manager group and gives them both se Ob ective To study public inheri itance and see the expanded capabil iti ies of the manager class and code reuse I ...