-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathAutoVehicul.h
43 lines (35 loc) · 1.01 KB
/
AutoVehicul.h
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
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
#pragma once
#include "Vehicul.h"
class AutoVehicul : public Vehicul
{
protected:
static uint autoVehiculCount;
char *marca;
char *model;
uint anFabricatie;
float consumMediu;
uint pretEUR;
char *numar;
public:
static uint getAutoVehiculCount(void);
AutoVehicul(void);
AutoVehicul(char *marca, char *model, uint anFabricatie, float consumMediu, uint pretEUR, char *numar);
AutoVehicul(const AutoVehicul &o);
~AutoVehicul(void);
uint codObiect(void);
bool read(istream &in, bool writeLog);
void write(ostream &out, bool writeClassCode, bool writeNewLine, bool writeLog);
char* getMarca(void) const;
char* getModel(void) const;
uint getAnFabricatie(void) const;
float getConsumMediu(void) const;
uint getPretEUR(void) const;
char* getNumar(void) const;
void setMarca(char *marca);
void setModel(char *model);
void setAnFabricatie(uint anFabricatie);
void setConsumMediu(float consumMediu);
void setPretEUR(uint pretEUR);
void setNumar(char *numar);
AutoVehicul& operator = (const AutoVehicul &o);
};