#ifndef SALARIED_EMPLOYEE_CPP
#define SALARIED_EMPLOYEE_CPP
#include <iostream>
#include <string>
#include "SalariedEmployee.h"
using namespace std;

SalariedEmployee::SalariedEmployee(): Employee(), salary(0) {setNetPay(salary);}
SalariedEmployee::SalariedEmployee(const string& theName, const string& theSsn, double theSalary): Employee(theName, theSsn), salary(theSalary) {}

double SalariedEmployee::getSalary() const{
	return salary;
	}

void SalariedEmployee::setSalary(double newSalary){
	salary=newSalary;
	setNetPay(salary);
	}

void SalariedEmployee::printCheck() const{
	cout <<"-----------------------------" <<endl
		<<"Pay to the order of "<< name <<endl
		<<"The sum of :" <<netPay <<"Euros" <<endl
		<<"Employee number: "<< ssn <<endl
		<<"Salaried Employee. Regular Pay:" <<salary <<endl
		<<"-------------------------------"<<endl;
}

#endif
