#pragma once | |
#include <string> | |
class Student : public Person { | |
private: | |
static const char alias_ = 's'; | |
int index_; | |
public: | |
int getIndex() { return index_; } | |
void setIndex(int index) { index_ = index; } | |
void show(); | |
Student(std::string name = "", std::string surname = "", | |
std::string PESEL = "00000000000", std::string gender = "", | |
std::string address = "", int index = 0000); | |
//bad solution (virtual base class method restriction) | |
float getSalary() { return -1.0F; } | |
void setSalary(float DO_NOT) {} | |
}; |