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

Class Officer

Lab_16/Source.cpp:90–113  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

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

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected