Class Hierarchy
employee.h
Go to the documentation of this file.
1
#pragma once
2
3
#include <iostream>
4
#include <string>
5
8
class
Employee
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
Employee
Definition:
employee.h:9
Employee::Employee
Employee(const std::string &name)
Definition:
employee.cpp:8
Employee::get_Counter
int get_Counter() const
Definition:
employee.h:32
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 by
1.9.1