blob: 7c102be1448e5c6a834b899d108fcedf3f8f5ae1 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
|
#ifndef _COMBUSTIONVEHICLE
#define _COMBUSTIONVEHICLE
#include "Vehicle.h"
#include <istream>
#include <ostream>
class CombustionVehicle : public Vehicle {
unsigned cyllindersCount;
double engineVolume;
public:
CombustionVehicle();
unsigned GetCyllindersCount() const;
void SetCyllindersCount(unsigned cyllindersCount);
double GetEngineVolume() const;
void SetEngineVolume(double engineVolume);
friend std::ostream& operator<<(std::ostream& ostr, const CombustionVehicle& vehicle);
friend std::istream& operator>>(std::istream& istr, CombustionVehicle& vehicle);
static bool IsCombustionVehicle(const Vehicle& vehicle);
};
#endif /* _COMBUSTIONVEHICLE */
|