⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 employee.h

📁 著名的uncle Bob的Agile software development的代码
💻 H
字号:
#ifndef EMPLOYEE_H#define EMPLOYEE_H#include <string>class PaymentSchedule;class PaymentClassification;class PaymentMethod;class Affiliation;class Paycheck;class Date;class Employee{ public:  virtual ~Employee();  Employee(int empid, string name, string address);  void SetName(string name);  void SetAddress(string address);  void SetClassification(PaymentClassification*);  void SetMethod(PaymentMethod*);  void SetSchedule(PaymentSchedule*);  void SetAffiliation(Affiliation*);  int GetEmpid() const {return itsEmpid;}  string GetName() const {return itsName;}  string GetAddress() const {return itsAddress;}  PaymentMethod* GetMethod() {return itsPaymentMethod;}  PaymentClassification* GetClassification() {return itsClassification;}  PaymentSchedule* GetSchedule() {return itsSchedule;}  Affiliation* GetAffiliation() {return itsAffiliation;}  void Payday(Paycheck&);  bool IsPayDate(const Date& payDate) const;  Date GetPayPeriodStartDate(const Date& payPeriodEndDate) const; private:  int itsEmpid;  string itsName;  string itsAddress;  PaymentClassification* itsClassification;  PaymentSchedule* itsSchedule;  PaymentMethod* itsPaymentMethod;  Affiliation* itsAffiliation;};#endif

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -