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
7
class
Employee
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
Employee
Definition
employee.h:8
Employee::get_Counter
int get_Counter() const
Definition
employee.h:31
Employee::~Employee
virtual ~Employee()
Definition
employee.cpp:15
Employee::payment
virtual float payment() const =0
Employee::print
virtual void print(std::ostream &s) const
Definition
employee.cpp:22
employee.h
Generated on Fri May 22 2026 14:43:19 for Class Hierarchy by
1.9.8