21 lines
429 B
C++
21 lines
429 B
C++
#ifndef EMPLYOEE_H
|
|
#define EMPLYOEE_H
|
|
#include "Person.h"
|
|
|
|
class Employee : public Person {
|
|
public:
|
|
void askForInfo();
|
|
|
|
private:
|
|
int salary;
|
|
|
|
void doDisplay();
|
|
|
|
template <class Archive> void serialize(Archive &ar, const unsigned int version) {
|
|
ar &boost::serialization::base_object<Person>(*this);
|
|
ar &salary;
|
|
}
|
|
friend class boost::serialization::access;
|
|
};
|
|
|
|
#endif |