Hey, I need to create some pseudo code for a class and I dunno if I've done it right or not. Any help?

Begin class Employee
Initialise empty constructor Employee
Initialise constructor Employee with parameters 

Define prototype for method getID(as integer)
Define prototype for method getFirstName(as char array) 
Define prototype for method getLastName(as char array)
Define prototype for method getAddress(as char array)
Define prototype for method getAge(as intgeger)
Define prototype for method getHours(as integer)
Define prototype for method getPayRate(as float)

Define prototype for method setID(as ineger)
Define prototype for method setFirstName(as char array)
Define prototype for method setLastName(as char array)
Define prototype for method setAddress(as char array)
Define prototype for method setAge(as integer)
Define prototype for method setHours(as integer)
Define prototype for method setPay(as float)


set employee_id AS integer
set employee_firstName AS character[255]
set employee_lastName AS character[255]
set employee_age AS integer
set employee_hours AS integer
set employee_pay AS float

End class
class Employee
{
      public:
             Employee();
             Employee(int theID, char theName[], char theLastName[], char theAddress[], int theAge, int theHoursWorked, int thePayRate); 
             int getID();
             char* getFirstName();
             char* getLastName();
             char* getAddress();
             int getAge();
             int getHours();
             float getPayRate();
             
             void setID(int theID);
             void setFirstName(char theName[]);
             void setLastName(char theLastName[]);
             void setAddress(char theAddress[]);
             void setAge(int theAge);
             void setHours(int theHoursWorked);
             void setPay(int thePayRate);
             int calculateTax();
             float calculateGrossPay();
             int calculateDiscount();
             char setValues(bool isSalaried, float theSalary);
      protected:
              int employee_id;
              char employee_firstName[255];
              char employee_lastName[255];
              char employee_address[255];
              int employee_age;
              int employee_hours;
              int employee_pay;
};

Thanks

This article has been dead for over six months. Start a new discussion instead.