blob: e5c695ff14326706504f62d3a3ecc1413aa49659 [file] [log] [blame]
Tomasz K15fe6eb2018-07-28 21:26:05 +02001#pragma once
2#include <climits>
3
4class Employee : public Person {
5private:
6 static const char alias_ = 'e';
7 float salary_;
8
9public:
10 float getSalary() { return salary_; }
11 void setSalary(float salary) { salary_ = salary; }
12
13 void show();
Tomasz Ke7546f42018-07-31 18:22:58 +020014 char getAlias() { return alias_; };
Tomasz K15fe6eb2018-07-28 21:26:05 +020015
16 Employee(std::string name = "", std::string surname = "",
Tomasz Ke7546f42018-07-31 18:22:58 +020017 std::string Pesel = "00000000000", std::string gender = "",
18 float earnings = 0.0F, std::string address = "");
Tomasz K15fe6eb2018-07-28 21:26:05 +020019
20 //bad solution (virtual base class method restriction)
21 int getIndex() { return INT_MAX; }
22
Tomasz Ke7546f42018-07-31 18:22:58 +020023};