Fahrzeuge 2
Smart Class Reference

#include <fahrzeug.h>

Inheritance diagram for Smart:
Collaboration diagram for Smart:

Public Member Functions

 Smart (int eigengewicht)
 
virtual ~Smart () override
 
std::string classname () const override
 
float verbrauch () const override
 
- Public Member Functions inherited from PKW
 PKW (int eigengewicht, int passagiere)
 
virtual ~PKW () override
 
int Get_pass () const
 
- Public Member Functions inherited from Fahrzeug
 Fahrzeug (int kg)
 
virtual ~Fahrzeug ()
 
int Get_kg () const
 

Detailed Description

Definition at line 106 of file fahrzeug.h.

Constructor & Destructor Documentation

◆ Smart()

Smart::Smart ( int  eigengewicht)
inlineexplicit

Definition at line 109 of file fahrzeug.h.

◆ ~Smart()

Smart::~Smart ( )
overridevirtual

Definition at line 53 of file fahrzeug.cpp.

Member Function Documentation

◆ classname()

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

Reimplemented from PKW.

Definition at line 113 of file fahrzeug.h.

◆ verbrauch()

float Smart::verbrauch ( ) const
inlineoverridevirtual

Fuel consumption

Returns
fuel consumption liter per 100 km

Reimplemented from Fahrzeug.

Definition at line 114 of file fahrzeug.h.

Here is the call graph for this function:

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