40 lines
577 B
C
40 lines
577 B
C
|
/*
|
||
|
* File: Employee.h
|
||
|
* Author: ASDV1
|
||
|
*
|
||
|
* Created on April 21, 2023, 10:52 AM
|
||
|
*/
|
||
|
|
||
|
#ifndef EMPLOYEE_H
|
||
|
#define EMPLOYEE_H
|
||
|
|
||
|
|
||
|
#include <string>
|
||
|
|
||
|
class Employee
|
||
|
{
|
||
|
private:
|
||
|
char * pName;
|
||
|
public:
|
||
|
Employee();
|
||
|
Employee(Employee &);
|
||
|
Employee(const char* pName );
|
||
|
virtual ~Employee();
|
||
|
char* getName();
|
||
|
void setName(const char* Name);
|
||
|
virtual std::string toString();
|
||
|
Employee & operator=( Employee & other);
|
||
|
|
||
|
virtual double computePay();
|
||
|
virtual double weeklyPay() = 0;//JAVA abstract method equivalent
|
||
|
|
||
|
};
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
#endif /* EMPLOYEE_H */
|
||
|
|
||
|
|