Files
cppcourse/397/SolutionEx62Bonus2/Employee.h
T
2026-10-05 11:27:21 +02:00

21 lines
449 B
C++

#ifndef EMPLOYEE_H
#define EMPLOYEE_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_NVP(Person);
ar &BOOST_SERIALIZATION_NVP(salary);
}
friend class boost::serialization::access;
};
#endif