Fahrzeuge 3: list
LKW Class Reference

#include <fahrzeug.h>

Inheritance diagram for LKW:
Collaboration diagram for LKW:

Public Member Functions

 LKW (int eigengewicht, int ladung)
 
 ~LKW () override
 
int Get_load () const
 Load weight. 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 42 of file fahrzeug.h.

Constructor & Destructor Documentation

◆ LKW()

LKW::LKW ( int  eigengewicht,
int  ladung 
)

Default constructor

Parameters
[in]eigengewichtdead weight in kg
[in]ladungload weight in kg

Definition at line 15 of file fahrzeug.cpp.

◆ ~LKW()

LKW::~LKW ( )
override

Definition at line 21 of file fahrzeug.cpp.

Member Function Documentation

◆ classname()

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

Class name.

Returns
name of that class

Reimplemented from Fahrzeug.

Reimplemented in Raba, and MAN.

Definition at line 63 of file fahrzeug.h.

◆ Get_load()

int LKW::Get_load ( ) const
inline

Load weight.

Returns
Load weight in kg

Definition at line 55 of file fahrzeug.h.

Here is the caller graph for this function:

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