-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMailingAddress.cpp
More file actions
85 lines (81 loc) · 1.72 KB
/
MailingAddress.cpp
File metadata and controls
85 lines (81 loc) · 1.72 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
79
80
81
82
83
84
85
/*********************************************************
* file name: MailingAddress.cpp
* programmer name: Lukas Belashov
* date created:2/18/2020
* date of last revision:2/18/2020
* details of the revision: None
* short description: The MailingAddress Class is a class that stores information about a student's mailing address.
**********************************************************/
#include <iostream>
#include "MailingAddress.h"
using namespace std;
namespace team3Belashov
{ //MailingAddress Function
MailingAddress::MailingAddress(string str, string ci, string stat, int zi, string typ)
{
street = str;
city = ci;
state = stat;
zip = zi;
type = typ;
}
//copy function
MailingAddress::MailingAddress(const MailingAddress& s)
{
street = s.street;
city = s.city;
state = s.state;
zip = s.zip;
type = s.type;
}
//setStreet Function
void MailingAddress::setStreet(string str)
{
street = str;
}
//setCity Function
void MailingAddress::setCity(string ci)
{
city = ci;
}
//setState Function
void MailingAddress::setState(string stat)
{
state = stat;
}
//setZip Function
void MailingAddress::setZip(int zi)
{
zip = zi;
}
//setType Function
void MailingAddress::setType(string typ)
{
type = typ;
}
//setStreet Function
string MailingAddress::getStreet() const
{
return street;
}
//getCity Function
string MailingAddress::getCity() const
{
return city;
}
//getState Function
string MailingAddress::getState() const
{
return state;
}
//getZip Function
int MailingAddress::getZip() const
{
return zip;
}
//getType Function
string MailingAddress::getType() const
{
return type;
}
}