[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 Employee.h

using namespace std;

Employee::Employee(){
}

Employee::Employee(string name, string ssn) : _name(name), _ssn(ssn){
}

Employee::Employee(const Employee& e){
cout << “Inside copy constructor of Employee” << endl;_name = e._name;_ssn = e._ssn;}Employee& Employee::operator=(const Employee& e){cout << “Inside operator = of Employee” << endl;_name = e._name;_ssn = e._ssn;return *this;}std::ostream& operator<<(std::ostream& stream, const Employee& e){return stream << “Employee details, name ” << e._name << “, ssn ” << e._ssn << “, netPay” << e._netPay << endl;}void Employee::printCheck() const{}

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