Fahrzeuge 3
Public Member Functions | List of all members
LKW Class Reference

#include <fahrzeug.h>

Inheritance diagram for LKW:
Fahrzeug MAN Raba

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 43 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 64 of file fahrzeug.h.

◆ Get_load()

int LKW::Get_load ( ) const
inline

Load weight.

Returns
Load weight in kg

Definition at line 56 of file fahrzeug.h.


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