rwth-info3/Aufgabenblock_1/PKW.h

37 lines
632 B
C
Raw Permalink Normal View History

2011-08-25 14:26:04 +02:00
/*
* PKW.h
*
* Created on: 18.08.2011
* Author: stv0g
*/
#ifndef PKW_H_
#define PKW_H_
#include <string>
#include "Fahrzeug.h"
using namespace std;
class PKW: public Fahrzeug {
public:
2011-10-18 21:51:28 +02:00
PKW();
2011-10-14 19:24:57 +02:00
PKW(string sName, double dMaxGeschwindigkeit);
PKW(string sName, double dMaxGeschwindigkeit, double dVerbrauch, double dTankvolumen = 55);
2011-08-25 14:26:04 +02:00
virtual ~PKW();
void vAbfertigung();
2011-10-14 19:24:57 +02:00
void vAusgabe() const;
ostream& ostreamAusgabe(ostream &stream) const;
double dVerbrauch() const;
double dTanken(double dMenge = 0.0);
private:
double p_dVerbrauch;
double p_dTankinhalt;
double p_dTankvolumen;
2011-08-25 14:26:04 +02:00
};
#endif /* PKW_H_ */