-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathCustomer.h
More file actions
78 lines (61 loc) · 1.15 KB
/
Customer.h
File metadata and controls
78 lines (61 loc) · 1.15 KB
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
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
#ifndef __Customer__
#define __Customer__
#include "rt.h"
#include "Receptionist.h"
#include "Car.h"
class Customer {
private:
Car* Cuscar;
int money;
public:
class Recep* theRecep;
void AddRecep(Recep* aRecep)
{
theRecep = aRecep;
theRecep->theCustomer = this;
}
Car* sendCar(void) {
return Cuscar;
}
void getCar(Car* car) {
Cuscar = car;
}
void payment(void) {
printf("Payment is Done\n");
}
Customer();
int ShowOil(void) {
return Cuscar->ShowOil();
}
int ShowAirFilter(void) {
return Cuscar->ShowAirFilter();
}
int ShowOilFilter(void) {
return Cuscar->ShowOilFilter();
}
void initializetyre(int x, int y) {
Cuscar->initializetyre(x, y);
}
void initializeOF(int x) {
Cuscar->initializeOF(x);
}
void Showty(void ) {
for (int i = 0; i < 4; i++) {
printf("tyre %d used percentage is %d\n", i, Cuscar->ShowTyre(i));
}
}
int Showmoney(void) {
printf("The remaining money is: %d\n", money);
return money;
}
void Pay(int x) {
money -= x;
assert(money >= 0);
}
};
Customer::Customer() {
Cuscar = new Car;
money = 500;
cout << "Customer Constuctor being called..\n";
}
#endif