Fahrzeuge 3: raw pointer
Fahrzeug Class Referenceabstract

#include <fahrzeug.h>

Inheritance diagram for Fahrzeug:

Public Member Functions

 Fahrzeug (int kg)
 
virtual ~Fahrzeug ()
 
int Get_kg () const
 
virtual std::string classname () const
 Class name. More...
 
virtual float verbrauch () const =0
 

Detailed Description

Definition at line 5 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

Class name.

Returns
name of that class

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

Definition at line 27 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 19 of file fahrzeug.h.

Here is the caller graph for this function:

◆ verbrauch()

virtual float Fahrzeug::verbrauch ( ) const
pure virtual

Fuel consumption

Returns
fuel consumption liter per 100 km

Implemented in Smart, Opel, Raba, and MAN.

Here is the caller graph for this function:

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