Class Hierarchy
Public Member Functions | List of all members
Employee Class Referenceabstract

#include <employee.h>

Inheritance diagram for Employee:
Manager Worker SalesPerson

Public Member Functions

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

Detailed Description

Abstrakte Basisklasse eines allgemeinen Angestellten einer Verkaufsstelle

Definition at line 9 of file employee.h.

Constructor & Destructor Documentation

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 const &  )
default
Employee::Employee ( Employee &&  )
default
Employee::~Employee ( )
virtual

Default destructor

Definition at line 15 of file employee.cpp.

Member Function Documentation

int Employee::get_Counter ( ) const
inline

Rueckgabe der Anzahl der Instanzen von Employee und abgleiteten Klassen.

Returns
Anzahl.

Definition at line 39 of file employee.h.

std::string Employee::get_Name ( ) const
inline

Lesezugriff auf Namen.

Returns
Name des Angestellten.

Definition at line 44 of file employee.h.

Employee& Employee::operator= ( Employee const &  )
default
Employee& Employee::operator= ( Employee &&  )
default
virtual float Employee::payment ( ) const
pure virtual

Berechnet das Gehalt.

Returns
Gehalt.

Implemented in SalesPerson, Worker, and Manager.

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

Gibt die Daten der aktuellen Instanz aus.

Parameters
[in,out]sAusgabestrom

Reimplemented in SalesPerson, Worker, and Manager.

Definition at line 22 of file employee.cpp.


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