chore: Add course material
This commit is contained in:
@@ -0,0 +1,21 @@
|
||||
#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
|
||||
Reference in New Issue
Block a user