MCPcopy Create free account
hub / github.com/Rustam-Z/cpp-programming / Officer

Class Officer

Lab_17/Education.cpp:96–115  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

94};
95
96class Officer : public Staff, public Education {
97protected:
98 float grade;
99public:
100 Officer() {
101 grade = 0.0;
102 }
103 void getdata() {
104 Staff::getdata_code();
105 Staff::getdata_name();
106 Education::getdata();
107 cout << "Enter the grade: "; cin >> grade;
108 }
109 void showdata() {
110 Staff::showdata_code();
111 Staff::showdata_name();
112 Education::showdata();
113 cout << "Officer Grade: " << grade << endl;
114 }
115};
116
117class Typist : public Staff {
118protected:

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected