C++面向对象程序设计第七章(13)

2021-02-21 10:47

C++面向对象程序设计

1 2 3 4 5 6 7 8 9

// Fig. 13.3: BasePlusCommissionEmployee.h // BasePlusCommissionEmployee class derived from class // CommissionEmployee. #ifndef BASEPLUS_H #define BASEPLUS_H #include <string> // C++ standard string class std::string; using std::string;

Outline

BasePlus Commission Employee.h

10 #include "CommissionEmployee.h" // CommissionEmployee class declaration 11 12 class BasePlusCommissionEmployee : public CommissionEmployee 13 { 14 public: public: 15 16 17 18 19 20 21 22 24 26 27 #endif const; double earnings() const; // calculate earnings const; void print() const; // print BasePlusCommissionEmployee object double baseSalary; // base salary void setBaseSalary( double ); // set base salary const; double getBaseSalary() const; // return base salary BasePlusCommissionEmployee( const string &, const string &, 0.0, 0.0, const string &, double = 0.0, double = 0.0, double = 0.0 );

(1 of 1)

23 private: private: 25 }; // end class BasePlusCommissionEmployee


C++面向对象程序设计第七章(13).doc 将本文的Word文档下载到电脑 下载失败或者文档不完整,请联系客服人员解决!

下一篇:医疗废物管理委员会组成、职责及会议制度

相关阅读
本类排行
× 注册会员免费下载(下载后可以自由复制和排版)

马上注册会员

注:下载文档有可能“只有目录或者内容不全”等情况,请下载之前注意辨别,如果您已付费且无法下载或内容有问题,请联系我们协助你处理。
微信: QQ: