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
8{
9 public:
13 explicit Employee(const std::string& name); // explicit suggested by Intel compiler for a on-element parameter list in constructor
15 virtual ~Employee();
16
20 virtual void print(std::ostream& s) const;
21
25 virtual float payment() const = 0; // rein virtuell
26// {return 0.0f; } // da war die Methode nur virtuell
27
31 int get_Counter() const {return _counter;}
32
33 protected:
34 private:
35 std::string _name;
36 static int _counter;
37};
38
int get_Counter() const
Definition employee.h:31
virtual ~Employee()
Definition employee.cpp:15
virtual float payment() const =0
virtual void print(std::ostream &s) const
Definition employee.cpp:22