Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- class Employee {
- protected:
- Employee();
- Employee(int empNum, string n, string a, string p);
- virtual void readData(ifstream&) = 0;
- public:
- virtual ~Employee() = default;
- int GetEmployeeNum() const;
- string GetName() const;
- string GetAddress() const;
- string GetPhone() const;
- void SetName(string newName);
- void SetAddress(string newAddress);
- void SetPhone(string newPhone);
- virtual double calcPay() = 0;
- virtual void printCheck() = 0;
- virtual void write(ofstream&) = 0;
- private:
- int employeeNumber;
- string name;
- string address;
- string phone;
- };
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement