00001 // Implementation of class Boss 00002 #ifndef __J2K__BOSS_INL__ 00003 #define __J2K__BOSS_INL__ 00004 00005 #include <j2k/Fred/Job/Boss.hpp> 00006 00007 inline Boss::Boss( const char* first, const char* last, double sal ) 00008 : Employee( first, last ) 00009 { 00010 setWeeklySalary( sal ); 00011 } 00012 00013 // Set the Boss's salary 00014 inline void Boss::setWeeklySalary( double sal ) 00015 { 00016 weeklySalary = sal; 00017 } 00018 00019 // Get the Boss's pay 00020 inline double Boss::earnings() const 00021 { 00022 return weeklySalary; 00023 } 00024 00025 // Print the Boss's name 00026 inline void Boss::printName() const 00027 { 00028 cout << "\n Boss: "; 00029 Employee::printName(); 00030 } 00031 00032 #endif