Fahrzeuge 3: unique pointer
Smart Class Reference

#include <fahrzeug.h>

Inheritance diagram for Smart:
Collaboration diagram for Smart:

Public Member Functions

 Smart (int eigengewicht)
 
 ~Smart () override
 
std::string classname () const override
 Class name. More...
 
float verbrauch () const override
 fuel consumption More...
 
- Public Member Functions inherited from PKW
 PKW (int eigengewicht, int passagiere)
 
 ~PKW () override
 
int Get_pass () const
 Number of passengers. More...
 
- Public Member Functions inherited from Fahrzeug
 Fahrzeug (int kg)
 
virtual ~Fahrzeug ()
 
int Get_kg () const
 

Detailed Description

Definition at line 182 of file fahrzeug.h.

Constructor & Destructor Documentation

◆ Smart()

Smart::Smart ( int  eigengewicht)
inlineexplicit

Definition at line 185 of file fahrzeug.h.

◆ ~Smart()

Smart::~Smart ( )
override

Definition at line 45 of file fahrzeug.cpp.

Member Function Documentation

◆ classname()

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

Class name.

Returns
name of that class

Reimplemented from PKW.

Definition at line 192 of file fahrzeug.h.

◆ verbrauch()

float Smart::verbrauch ( ) const
inlineoverridevirtual

fuel consumption

Returns
fuel consumption in liter

Implements Fahrzeug.

Definition at line 200 of file fahrzeug.h.

Here is the call graph for this function:

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