Fahrzeuge 3: shared pointer
Opel Class Reference

#include <fahrzeug.h>

Inheritance diagram for Opel:
Collaboration diagram for Opel:

Public Member Functions

 Opel (int eigengewicht)
 
 ~Opel () 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 155 of file fahrzeug.h.

Constructor & Destructor Documentation

◆ Opel()

Opel::Opel ( int  eigengewicht)
inlineexplicit

Definition at line 158 of file fahrzeug.h.

◆ ~Opel()

Opel::~Opel ( )
override

Definition at line 43 of file fahrzeug.cpp.

Member Function Documentation

◆ classname()

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

Class name.

Returns
name of that class

Reimplemented from PKW.

Definition at line 165 of file fahrzeug.h.

◆ verbrauch()

float Opel::verbrauch ( ) const
inlineoverridevirtual

fuel consumption

Returns
fuel consumption in liter

Implements Fahrzeug.

Definition at line 173 of file fahrzeug.h.

Here is the call graph for this function:

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