Advertisement
Jarquafelmu

Untitled

Nov 27th, 2018
148
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.60 KB | None | 0 0
  1. class Employee {
  2. protected:
  3.   Employee();
  4.   Employee(int empNum, string n, string a, string p);
  5.   virtual void readData(ifstream&) = 0;
  6. public:
  7.  
  8.   virtual ~Employee() = default;
  9.  
  10.   int GetEmployeeNum() const;
  11.   string GetName() const;
  12.   string GetAddress() const;
  13.   string GetPhone() const;
  14.  
  15.   void SetName(string newName);
  16.   void SetAddress(string newAddress);
  17.   void SetPhone(string newPhone);
  18.  
  19.   virtual double calcPay() = 0;
  20.   virtual void printCheck() = 0;
  21.  
  22.   virtual void write(ofstream&) = 0;
  23. private:
  24.   int employeeNumber;
  25.   string name;
  26.   string address;
  27.   string phone;
  28. };
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement