[SOLVED] CS c++ // from: Savitch. Absolute C++

$25

File Name: CS_c++_//_from:_Savitch._Absolute_C++.zip
File Size: 348.54 KB

5/5 - (1 vote)

// from: Savitch. Absolute C++

#include
#include HourlyEmployee.h
using namespace std;

HourlyEmployee::HourlyEmployee() : Employee(), _wageRate(0), _hours(0){
}

HourlyEmployee::HourlyEmployee(string name, string ssn, double wageRate, double hours) : Employee(name, ssn), _wageRate(wageRate), _hours(hours){
}

HourlyEmployee::HourlyEmployee(const HourlyEmployee& h) : Employee(h){
cout << “Inside copy constructor of HourlyEmployee” << endl;_wageRate = h._wageRate;_hours = h._hours;}HourlyEmployee& HourlyEmployee::operator=(const HourlyEmployee& h){cout << “Inside operator = of HourlyEmployee” << endl;Employee::operator= (h);_wageRate = h._wageRate;_hours = h._hours;return *this;}

Reviews

There are no reviews yet.

Only logged in customers who have purchased this product may leave a review.

Shopping Cart
[SOLVED] CS c++ // from: Savitch. Absolute C++
$25