Fahrzeuge 3
Public Member Functions | List of all members
Fahrzeug Class Referenceabstract

#include <fahrzeug.h>

Inheritance diagram for Fahrzeug:
LKW PKW MAN Raba Opel Smart

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 6 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 28 of file fahrzeug.h.

◆ Get_kg()

int Fahrzeug::Get_kg ( ) const
inline

Access dead weight

Returns
dead weight of vehicle in kg

Definition at line 20 of file fahrzeug.h.

◆ verbrauch()

virtual float Fahrzeug::verbrauch ( ) const
pure virtual

Fuel consumption

Returns
fuel consumption liter per 100 km

Implemented in Smart, Opel, Raba, and MAN.


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