blob: 60d88d3fa0ad97f1524d05851addff7f5b2a3137 [file] [log] [blame]
#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) {}
};