previous | start | next

C Strings: As Class Members (2)

class Employee
{
  char *name;
  double salary;
public:
  Employee();
  Employee(char nm[], double sal);
  Employee(const Employee& other);

    
  const char * getName() const;
  double getSalary() const;

  void setSalary(double newSalary);

  void operator=(const Employee& other);

  ~Employee();
};


previous | start | next