WeeklyWorker Class Reference

#include <weekly.h>

Inheritance diagram for WeeklyWorker:

Inheritance graph
[legend]
Collaboration diagram for WeeklyWorker:

Collaboration graph
[legend]

List of all members.

Public Member Functions

 WeeklyWorker (const char first[]="", const char last[]="", double sal_per_week=0.0)
 WeeklyWorker (const WeeklyWorker &worker)
virtual ~WeeklyWorker ()
WeeklyWorkeroperator= (const WeeklyWorker &worker)
void set_per_week (double sal_per_week)
virtual double earnings (void) const
virtual void print (std::ostream &out) const

Protected Attributes

double weeklySalary


Detailed Description

Definition at line 7 of file weekly.h.


Constructor & Destructor Documentation

WeeklyWorker::WeeklyWorker ( const char  first[] = "",
const char  last[] = "",
double  sal_per_week = 0.0 
)

Definition at line 10 of file weekly.C.

WeeklyWorker::WeeklyWorker ( const WeeklyWorker worker  ) 

Definition at line 16 of file weekly.C.

WeeklyWorker::~WeeklyWorker (  )  [virtual]

Definition at line 20 of file weekly.C.


Member Function Documentation

WeeklyWorker & WeeklyWorker::operator= ( const WeeklyWorker worker  ) 

Definition at line 22 of file weekly.C.

Here is the call graph for this function:

Here is the caller graph for this function:

void WeeklyWorker::set_per_week ( double  sal_per_week  ) 

Definition at line 28 of file weekly.C.

Here is the call graph for this function:

Here is the caller graph for this function:

double WeeklyWorker::earnings ( void   )  const [virtual]

Implements Employee.

Reimplemented in CommissionWorker.

Definition at line 33 of file weekly.C.

Here is the caller graph for this function:

virtual void WeeklyWorker::print ( std::ostream &  out  )  const [virtual]

Reimplemented from Employee.

Reimplemented in Boss, and CommissionWorker.


Member Data Documentation

double WeeklyWorker::weeklySalary [protected]

Definition at line 9 of file weekly.h.


The documentation for this class was generated from the following files:

Generated on Thu Oct 22 13:36:17 2009 for EmployeeInheritanceExample by  doxygen 1.5.5