-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathAirbus.h
56 lines (43 loc) · 1.08 KB
/
Airbus.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
44
45
46
47
48
49
50
51
52
53
54
55
56
/*
* Class: Airbus
*
* This class is an inheritance of the Plane abstract class.
* It implement the functions printSeats and save of its base class.
*
* Designed by: Team 4
*
* List of methods:
* constructor and destructor
* printSeats: display the seat arrangment in the plane
* save: save the seating chart back to the file in the same format
*/
#ifndef AIRBUS_H
#define AIRBUS_H
#include "Plane.h"
class Airbus : public Plane
{
private:
string seatingFile; // the name of the file containing Boeing type seating chart
public:
/*********************
* CONSTRUCTOR
********************/
Airbus() : Plane()
{
seatingFile = "";
}
// overloaded constructor
Airbus(string, string, string, string);
/*********************
* DESTRUCTOR
********************/
~Airbus();
/*********************
* OVERRIDE FUNCTIONS
********************/
// display the seat arrangment in the plane
virtual void printSeats() override;
// save the seating chart back to the file in the same format
virtual void save() override;
};
#endif