00001 #include "boss.h" 00002 00003 #include "weekly.h" 00004 #include "minmax.h" 00005 #include <iostream> 00006 #include <iomanip> 00007 00008 using namespace std; 00009 00010 Boss::Boss(const char * first /* = "" */, 00011 const char * last /* = "" */, 00012 double sal_per_week /* = 0.0 */) 00013 : Employee(first, last), WeeklyWorker(first, last, sal_per_week) { } 00014 00015 Boss::Boss(const Boss & boss) : Employee(boss), WeeklyWorker(boss) { } 00016 00017 Boss::~Boss() { } 00018 00019 Boss & Boss::operator = (const Boss & boss) { 00020 WeeklyWorker::operator=(boss); 00021 return *this; 00022 } 00023 00024 void Boss::print(ostream & out) const { 00025 out << endl 00026 << setw(25) << "Boss: "; 00027 Employee::print(out); 00028 return; 00029 } 00030