Employee Class Reference

#include <employee.h>

Inheritance diagram for Employee:

Inheritance graph
[legend]

List of all members.

Public Member Functions

 Employee (const char first[]="", const char last[]="")
 Employee (const Employee &emp)
virtual ~Employee ()
Employeeoperator= (const Employee &emp)
const char * get_first (void) const
const char * get_last (void) const
virtual double earnings (void) const =0
virtual void print (std::ostream &out) const

Protected Member Functions

void set_first (const char first[])
void set_last (const char last[])


Detailed Description

Definition at line 6 of file employee.h.


Constructor & Destructor Documentation

Employee::Employee ( const char  first[] = "",
const char  last[] = "" 
)

Definition at line 25 of file employee.C.

Here is the call graph for this function:

Employee::Employee ( const Employee emp  ) 

Definition at line 33 of file employee.C.

Here is the call graph for this function:

Employee::~Employee (  )  [virtual]

Definition at line 61 of file employee.C.


Member Function Documentation

void Employee::set_first ( const char  first[]  )  [protected]

Definition at line 49 of file employee.C.

Here is the call graph for this function:

Here is the caller graph for this function:

void Employee::set_last ( const char  last[]  )  [protected]

Definition at line 55 of file employee.C.

Here is the call graph for this function:

Here is the caller graph for this function:

Employee & Employee::operator= ( const Employee emp  ) 

Definition at line 40 of file employee.C.

Here is the call graph for this function:

Here is the caller graph for this function:

const char* Employee::get_first ( void   )  const [inline]

Definition at line 21 of file employee.h.

const char* Employee::get_last ( void   )  const [inline]

Definition at line 22 of file employee.h.

virtual double Employee::earnings ( void   )  const [pure virtual]

Implemented in CommissionWorker, HourlyWorker, ItemlyWorker< ItemType >, WeeklyWorker, ItemlyWorker< long >, and ItemlyWorker< double >.

Here is the caller graph for this function:

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

Reimplemented in Boss, CommissionWorker, HourlyWorker, ItemlyWorker< ItemType >, PieceWorker, WeeklyWorker, ItemlyWorker< long >, and ItemlyWorker< double >.

Here is the caller graph for this function:


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