Class Hierarchy
Loading...
Searching...
No Matches
employee.h
Go to the documentation of this file.
1#pragma once
2
3#include <iostream>
4#include <string>
5
9{
10 public:
14 explicit Employee(const std::string& name); // explicit suggested by Intel compiler for a on-element parameter list in constructor
16 virtual ~Employee();
17
21 virtual void print(std::ostream& s) const;
22
26 virtual float payment() const = 0; // rein virtuell
27// {return 0.0f; } // da war die Methode nur virtuell
28
32 int get_Counter() const {return _counter;}
33
34 protected:
35 private:
36 std::string _name;
37 static int _counter;
38};
39
int get_Counter() const
Definition employee.h:32
virtual ~Employee()
Definition employee.cpp:15
virtual float payment() const =0
virtual void print(std::ostream &s) const
Definition employee.cpp:22