34 lines
628 B
C
34 lines
628 B
C
|
//
|
||
|
// Created by caleb on 4/23/24.
|
||
|
//
|
||
|
|
||
|
|
||
|
#ifndef WAGEEMPLOYEE_H
|
||
|
#define WAGEEMPLOYEE_H
|
||
|
|
||
|
#include <string>
|
||
|
|
||
|
class WageEmployee : public Employee{
|
||
|
private:
|
||
|
double wage;
|
||
|
int hours;
|
||
|
public:
|
||
|
WageEmployee();
|
||
|
WageEmployee(const char * pName, double wage, int hours);
|
||
|
WageEmployee( WageEmployee & );
|
||
|
~WageEmployee();
|
||
|
WageEmployee & operator=( WageEmployee & other);
|
||
|
|
||
|
int getHours() const;
|
||
|
void setHours(int hours);
|
||
|
double getWage() const;
|
||
|
void setWage(double wage);
|
||
|
std::string toString();
|
||
|
virtual double computePay();
|
||
|
virtual double weeklyPay();
|
||
|
|
||
|
};
|
||
|
|
||
|
#endif /* WAGEEMPLOYEE_H */
|
||
|
|