v_9b
 All Classes Files Functions Variables
employee.h
Go to the documentation of this file.
1 #ifndef EMPLOYEE_H
2 #define EMPLOYEE_H
3 
4 #include <string>
5 #include <iostream>
6 using namespace std;
7 
10 class Employee
11 {
12  public:
16  Employee(const string& name);
18  virtual ~Employee();
19 
23  virtual void print(ostream& s) const;
24 
28  virtual float payment() const = 0; // rein virtuell
29 // {return 0.0f; }; // da war die Methode nur virtuell
30 
34  int get_Counter() const {return _counter;};
35 
36  protected:
37  private:
38  string _name;
39  static int _counter;
40 };
41 
42 #endif // EMPLOYEE_H
Definition: employee.h:10
static int _counter
e i n Zaehler fuer alle Instanzen
Definition: employee.h:39
int get_Counter() const
Definition: employee.h:34