blob: 60d88d3fa0ad97f1524d05851addff7f5b2a3137 [file] [log] [blame]
Tomasz K15fe6eb2018-07-28 21:26:05 +02001#pragma once
2#include <string>
3
4class Student : public Person {
5private:
6 static const char alias_ = 's';
7 int index_;
8
9public:
10 int getIndex() { return index_; }
11 void setIndex(int index) { index_ = index; }
12
13 void show();
14
15 Student(std::string name = "", std::string surname = "",
16 std::string PESEL = "00000000000", std::string gender = "",
17 std::string address = "", int index = 0000);
18
19 //bad solution (virtual base class method restriction)
20 float getSalary() { return -1.0F; }
21 void setSalary(float DO_NOT) {}
22};