Fahrzeuge 3: list
MAN Class Reference

#include <fahrzeug.h>

Inheritance diagram for MAN:
Collaboration diagram for MAN:

Public Member Functions

 MAN (int eigengewicht, int ladung)
 
 ~MAN () override
 
std::string classname () const override
 Class name. More...
 
float verbrauch () const override
 fuel consumption More...
 
- Public Member Functions inherited from LKW
 LKW (int eigengewicht, int ladung)
 
 ~LKW () override
 
int Get_load () const
 Load weight. More...
 
- Public Member Functions inherited from Fahrzeug
 Fahrzeug (int kg)
 
virtual ~Fahrzeug ()
 
int Get_kg () const
 

Detailed Description

Definition at line 104 of file fahrzeug.h.

Constructor & Destructor Documentation

◆ MAN()

MAN::MAN ( int  eigengewicht,
int  ladung 
)
inline

Definition at line 107 of file fahrzeug.h.

◆ ~MAN()

MAN::~MAN ( )
override

Definition at line 39 of file fahrzeug.cpp.

Member Function Documentation

◆ classname()

std::string MAN::classname ( ) const
inlineoverridevirtual

Class name.

Returns
name of that class

Reimplemented from LKW.

Definition at line 114 of file fahrzeug.h.

◆ verbrauch()

float MAN::verbrauch ( ) const
inlineoverridevirtual

fuel consumption

Returns
fuel consumption in liter

Implements Fahrzeug.

Definition at line 122 of file fahrzeug.h.

Here is the call graph for this function:

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