doctor.h
资源名称:c.rar [点击查看]
上传用户:puke2000
上传日期:2022-07-25
资源大小:912k
文件大小:1k
源码类别:
C#编程
开发平台:
Visual C++
- //=====================================
- // doctor.h
- //=====================================
- #ifndef HEADER_DOCTOR
- #define HEADER_DOCTOR
- //-------------------------------------
- #include"graduatestudent.h"
- #include<iostream>
- //-------------------------------------
- class Doctor : public GraduateStudent{
- public:
- Doctor(string pName="noName"):GraduateStudent(pName){ type = DOCTOR; }
- void calcTuition(){std::cout<<"Doctor tuition calculation.n";}
- };//-----------------------------------
- #endif // HEADER_DOCTOR