-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathAddress.cs
More file actions
93 lines (75 loc) · 2.02 KB
/
Address.cs
File metadata and controls
93 lines (75 loc) · 2.02 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
86
87
88
89
90
91
92
93
public class Address{
private int index;
private string country;
private string city;
private string street;
private int house;
private int apartment;
public Address(int index, string country, string city,
string street, int house, int apartment) {
this.SetIndex(index);
this.SetCountry(country);
this.SetCity(city);
this.SetStreet(street);
this.SetHouse(house);
this.SetApartment(apartment);
}
public int GetIndex()
{
return index;
}
public void SetIndex(int value)
{
index = value;
}
public string GetCountry()
{
return country;
}
public void SetCountry(string value)
{
country = value;
}
public string GetCity()
{
return city;
}
public void SetCity(string value)
{
city = value;
}
public string GetStreet()
{
return street;
}
public void SetStreet(string value)
{
street = value;
}
public int GetHouse()
{
return house;
}
public void SetHouse(int value)
{
house = value;
}
public int GetApartment()
{
return apartment;
}
public void SetApartment(int value)
{
apartment = value;
}
public void print() {
Console.WriteLine("Your address - " + "\n" +
"index : " + index + "\n" +
"country : " + country + "\n" +
"city : " + city + "\n" +
"street : " + street + "\n" +
"house : " + house + "\n" +
"appartment : " + apartment);
}
}