-
Notifications
You must be signed in to change notification settings - Fork 0
/
buildings.cpp
66 lines (54 loc) · 2.44 KB
/
buildings.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
53
54
55
56
57
58
59
60
61
62
63
64
65
66
/***************************************************************************************************
** Author: Michael Johnson
** Date: 7/19/2017
** Description: Definitions of Buildings class functions
***************************************************************************************************/
#include "Buildings.h"
/*******************************************************************************************************
** Buildings Default Constructor
** Constructs the object with empty variables
*******************************************************************************************************/
Buildings::Buildings()
{
}
/*******************************************************************************************************
** Buildings Constructor
** Constructs the object with user input for each variable
*******************************************************************************************************/
Buildings::Buildings(string n, int s, string a)
{
buildingName = n;
buildingSize = s;
address = a;
}
/*******************************************************************************************************
** Buildings destructor
** Destructs the object
*******************************************************************************************************/
Buildings::~Buildings()
{
}
/*******************************************************************************************************
** getName function
** returns the name of building variable
*******************************************************************************************************/
string Buildings::getName()
{
return this->buildingName;
}
/*******************************************************************************************************
** getSize function
** returns the size of building variable
*******************************************************************************************************/
int Buildings::getSize()
{
return this->buildingSize;
}
/*******************************************************************************************************
** getAddress function
** returns the address of Building variable
*******************************************************************************************************/
string Buildings::getAddress()
{
return this->address;
}