Tomasz K | 15fe6eb | 2018-07-28 21:26:05 +0200 | [diff] [blame] | 1 | #pragma once
|
| 2 | #include <string>
|
| 3 |
|
| 4 | class Student : public Person {
|
| 5 | private:
|
| 6 | static const char alias_ = 's';
|
| 7 | int index_;
|
| 8 |
|
| 9 | public:
|
| 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 | }; |