Anda di halaman 1dari 1

// EMPLOY2.

H
// Abstract base class Employe
#indef EMPLOY2_H
#define EMPLOY_H

class Employee {
public:
Employee (const char *, const char *);
~Employee();
const char *getFirstName() const;
const char *getLastName() const;

// Pure virtual functions make


// Employee an abstract base class.
virtual float earning() const = 0; // pure virtual
virtual void print() const = 0;
private:
char *firstName;
char *lastName;
};

#endif

// pure virtaul

Anda mungkin juga menyukai