ASDV-Cpp/Assignments/MP6_CalebFontenot/SalaryEmployee.h

43 lines
765 B
C++

//
// Created by caleb on 4/23/24.
//
#ifndef SALARYEMPLOYEE_H
#define SALARYEMPLOYEE_H
#include <string>
class SalaryEmployee : public Employee {
private:
int salary;
int bonus;
public:
SalaryEmployee();
SalaryEmployee(SalaryEmployee &e);
SalaryEmployee(const char * pName, int salary, int bonus);
~SalaryEmployee();
int getBonus() const {
return bonus;
}
void setBonus(int bonus) {
this->bonus = bonus;
}
int getSalary() const {
return salary;
}
void setSalary(int salary) {
this->salary = salary;
}
double computePay();
double weeklyPay();
SalaryEmployee & operator=(SalaryEmployee & other);
std::string toString();
};
#endif /* SALARYEMPLOYEE_H */