-
Notifications
You must be signed in to change notification settings - Fork 0
/
AutoPersonal.h
34 lines (26 loc) · 910 Bytes
/
AutoPersonal.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
#pragma once
#include "Util.h"
#include "AutoVehicul.h"
#include "DefinedCodes.h"
class AutoPersonal : public virtual AutoVehicul
{
protected:
static uint autoPersonalCount;
char *caroserie;
uint numarPersoane;
AutoPersonal(char *caroserie, uint numarPersoane);
public:
static uint getAutoPersonalCount(void);
AutoPersonal(void);
AutoPersonal(char *marca, char *model, uint anFabricatie, float consumMediu, uint pretEUR, char *numar, char *caroserie, uint numarPersoane);
AutoPersonal(const AutoPersonal &o);
~AutoPersonal(void);
uint codObiect(void);
bool read(istream &in, bool writeLog);
void write(ostream &out, bool writeClassCode, bool writeNewLine = true, bool writeLog = true);
char* getCaroserie(void) const;
uint getNumarPersoane(void) const;
void setCaroserie(char *caroserie);
void setNumarPersoane(uint numarPersoane);
AutoPersonal& operator = (const AutoPersonal &o);
};