Website Summary Files Commits Branches @commit @diff @stats
path: root / Sem. 11 / Examples / Person, Student, Teacher / Teacher / Teacher.h
blob: 5ef0bd13a9e37aa02efe05d99a9d3a6de68e5076 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
#include "../Person/Person.h"

class Teacher : public Person
{
	char** subjects;
	size_t subjectsCount;

	void free();
	void copyFrom(const Teacher& other);// само нещата, които са от Teacher
public:
	Teacher(const char* name, int age, const char* const * subjects, size_t subjectsCount);

	Teacher(const Teacher& other);
	Teacher& operator=(const Teacher& other);
	~Teacher();
};