Fahrzeuge 3: unique pointer
PKW Class Reference

#include <fahrzeug.h>

Inheritance diagram for PKW:
Collaboration diagram for PKW:

Public Member Functions

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

Detailed Description

Definition at line 72 of file fahrzeug.h.

Constructor & Destructor Documentation

◆ PKW()

PKW::PKW ( int  eigengewicht,
int  passagiere 
)

Default constructor

Parameters
[in]eigengewichtdead weight in kg
[in]passagierepeople in car

Definition at line 27 of file fahrzeug.cpp.

◆ ~PKW()

PKW::~PKW ( )
override

Definition at line 33 of file fahrzeug.cpp.

Member Function Documentation

◆ classname()

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

Class name.

Returns
name of that class

Reimplemented from Fahrzeug.

Reimplemented in Smart, and Opel.

Definition at line 93 of file fahrzeug.h.

◆ Get_pass()

int PKW::Get_pass ( ) const
inline

Number of passengers.

Returns
Number of passengers

Definition at line 85 of file fahrzeug.h.

Here is the caller graph for this function:

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