[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 SalariedEmployee.h
using namespace std;

SalariedEmployee::SalariedEmployee() : Employee(), _weeklyPay(0){
}

SalariedEmployee::SalariedEmployee(string name, string ssn, double weeklyPay) : Employee(name, ssn), _weeklyPay(weeklyPay){
}

SalariedEmployee::SalariedEmployee(const SalariedEmployee& s) : Employee(s){
cout << “Inside copy constructor of SalariedEmployee” << endl;this->_weeklyPay = s._weeklyPay;
}

SalariedEmployee& SalariedEmployee::operator=(const SalariedEmployee& s){
cout << “Inside operator = of SalariedEmployee” << endl;Employee::operator= (s);_weeklyPay = s._weeklyPay;return *this;}double SalariedEmployee::getSalary(){return 0;}

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