-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathRoom.cpp
52 lines (46 loc) · 912 Bytes
/
Room.cpp
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
#pragma once
#include<iostream>
using namespace std;
class Room {
private:
string typeRoom;// phong co phong standard va phong VIP
double price;// gia phong standard la 200 1 ngay con phong VIP la 1000 1 ngay
int room_no;// so phong
string status; // phong trong, phong duoc dat
public:
// Ham khoi tao phong
Room()
{
room_no = NULL;
price = NULL;
}
Room(string typeRoom, double price) {
this->typeRoom = typeRoom;
this->price = price;
}
~Room(){}
void set_status(string status) {
this->status = status;
}
string get_status() {
return status;
}
void set_room_no(int room_no) {
this->room_no = room_no;
}
int get_room_no() {
return room_no;
}
void set_typeRoom(string typeRoom) {
this->typeRoom = typeRoom;
}
string get_type_room() {
return typeRoom;
}
void set_price(double price) {
this->price = price;
}
double get_price() {
return this->price;
}
};