Website Summary Files Commits Branches @commit @diff @stats
path: root / Sem. 11 / Examples / Student / Student.h
blob: af99e3011e5a8460bf0b18060d425fa99a397463 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
#include <iostream>
#include "../Person/Person.h"

class Student : public Person
{
	size_t fn = 0;
	size_t grade = 2;
public:
	Student() = default;
	Student(const char* name, int age, size_t fn);
	
	size_t getFn() const;
	void setFn(size_t fn);


	// No need for big 4, since there is NO dyn. memory in Student
	// The compiler will generate valid:

	//Student(const Student& other);
	//Student& operator=(const Student& other); //no need 
	// ~Student()
	
	//See on the .cpp file how the compiler creates them

};