Question: Class employee {private: string name; public: char ZD; void putname(string n) {name = n;)} class manager: public employee {private: string title; public: void puttitie(string t)

 Class employee {private: string name; public: char ZD; void putname(string n)

Class employee {private: string name; public: char ZD; void putname(string n) {name = n;)} class manager: public employee {private: string title; public: void puttitie(string t) {title= t;} int main {employee E; manager M; E.ID = "A E.ID = "B" E. name = "Jim" E.putname ("Jim") M. putname ("Harry") M. puttitle ("mgr"); class manager: private employee M.ID = "A M.ID = "B" E. name = "Jim" E.putname ("Jim") M. putname ("Harry") M. puttitle ("mgr")

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!