diff options
Diffstat (limited to 'week12/Exercise4/Employee.h')
| -rw-r--r-- | week12/Exercise4/Employee.h | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/week12/Exercise4/Employee.h b/week12/Exercise4/Employee.h new file mode 100644 index 0000000..82170fd --- /dev/null +++ b/week12/Exercise4/Employee.h @@ -0,0 +1,15 @@ +#pragma once + +class Employee { + int id; + float paycheck; + float efficiency; + +public: + virtual ~Employee() = default; + + virtual float Workload() = 0; + + // Това е за удобство, по-добрия вариант е гетъри и сетъри + friend class Company; +}; |
