Fahrzeuge 2
Fahrzeug Class Reference

#include <fahrzeug.h>

Inheritance diagram for Fahrzeug:

Public Member Functions

 Fahrzeug (int kg)
 
virtual ~Fahrzeug ()
 
int Get_kg () const
 
virtual std::string classname () const
 
virtual float verbrauch () const
 

Detailed Description

Definition at line 4 of file fahrzeug.h.

Constructor & Destructor Documentation

◆ Fahrzeug()

Fahrzeug::Fahrzeug ( int  kg)
explicit

Default constructor

Parameters
[in]kgdead weight in kg

Definition at line 3 of file fahrzeug.cpp.

◆ ~Fahrzeug()

Fahrzeug::~Fahrzeug ( )
virtual

Default destructor

Definition at line 9 of file fahrzeug.cpp.

Member Function Documentation

◆ classname()

virtual std::string Fahrzeug::classname ( ) const
inlinevirtual

Reimplemented in Smart, Opel, Raba, MAN, PKW, and LKW.

Definition at line 18 of file fahrzeug.h.

Here is the caller graph for this function:

◆ Get_kg()

int Fahrzeug::Get_kg ( ) const
inline

Access dead weight

Returns
dead weight of vehicle in kg

Definition at line 16 of file fahrzeug.h.

Here is the caller graph for this function:

◆ verbrauch()

virtual float Fahrzeug::verbrauch ( ) const
inlinevirtual

Fuel consumption

Returns
fuel consumption liter per 100 km

Reimplemented in Smart, Opel, Raba, and MAN.

Definition at line 23 of file fahrzeug.h.

Here is the caller graph for this function:

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