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

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