Class Hierarchy
Employee Class Referenceabstract

#include <employee.h>

Inheritance diagram for Employee:

Public Member Functions

 Employee (const std::string &name)
 
virtual ~Employee ()
 
virtual void print (std::ostream &s) const
 
virtual float payment () const =0
 
int get_Counter () const
 

Detailed Description

Abstrakte Basisklasse eines allgemeinen Angestellten einer Verkaufsstelle

Definition at line 8 of file employee.h.

Constructor & Destructor Documentation

◆ Employee()

Employee::Employee ( const std::string &  name)
explicit

Parameter constructor

Parameters
[in]nameName des Angestellten

Definition at line 8 of file employee.cpp.

◆ ~Employee()

Employee::~Employee ( )
virtual

Default destructor

Definition at line 15 of file employee.cpp.

Member Function Documentation

◆ get_Counter()

int Employee::get_Counter ( ) const
inline

Rueckgabe der Anzahlt der Instanzen von Employee und abgleiteten Klassen.

Returns
Anzahl.

Definition at line 32 of file employee.h.

Here is the caller graph for this function:

◆ payment()

virtual float Employee::payment ( ) const
pure virtual

Berechnet das Gehalt.

Returns
Gehalt.

Implemented in Worker, salesPerson, and manager.

Here is the caller graph for this function:

◆ print()

void Employee::print ( std::ostream &  s) const
virtual

Gibt die Daten der aktuellen Instanz aus.

Parameters
[in,out]sAusgabestrom

Reimplemented in Worker, salesPerson, and manager.

Definition at line 22 of file employee.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

The documentation for this class was generated from the following files: