Main Page   Packages   Namespace List   Class Hierarchy   Alphabetical List   Compound List   File List   Compound Members   File Members   Search  

C:/temp/src/j2k/etc/Job/Employee.hpp

Go to the documentation of this file.
00001 // Definition of class Employee
00002 #ifndef __J2K__Employee_HPP__
00003 #define __J2K__Employee_HPP__
00004 
00005 #include <j2k/Fred/Standard.hpp>
00006 #include <j2k/Fred/Date.hpp>
00007 
00008 class Employee {
00009 public:
00010    Employee( const char* first, const char* last );  // constructor
00011    virtual  ~Employee();                             // destructor
00012    const char*  getFirstName() const;                // return first name
00013    const char*  getLastName()  const;                // return last name
00014 
00015    // Pure virtual function makes Employee abstract base class
00016    virtual double earnings() const = 0;   // pure virtual
00017 
00018    void printName() const;
00019    void printInfo() const;
00020 
00021    // static member function
00022    // return # objects instantiated
00023    static int getCount();
00024 
00025 private:
00026    char*  firstName;
00027    char*  lastName;
00028 
00029    Date* birthDate;
00030    Date* hireDate;
00031 
00032    // static data member
00033    // number of objects instantiated
00034    static int count; 
00035 };
00036 
00037 #endif
00038 

Generated on Sun Oct 14 18:46:31 2001 for Standard J2K Library by doxygen1.2.11.1 written by Dimitri van Heesch, © 1997-2001