-
Notifications
You must be signed in to change notification settings - Fork 0
/
Shop.ts
94 lines (75 loc) · 2.01 KB
/
Shop.ts
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
94
class Shop {
constructor(private _name: string,
private _address: string,
private _city: string,
private _region: string,
private _country: string,
private _phone: string,
private _openDate: string,
private _closeDate: string) {
}
public get name(): string {
return this._name;
}
public set name(value: string) {
this._name = value;
}
public get address(): string {
return this._address;
}
public set address(value: string) {
this._address = value;
}
public get city(): string {
return this._city;
}
public set city(value: string) {
this._city = value;
}
public get region(): string {
return this._region;
}
public set region(value: string) {
this._region = value;
}
public get country(): string {
return this._country;
}
public set country(value: string) {
this._country = value;
}
public get phone(): string {
return this._phone;
}
public set phone(value: string) {
this._phone = value;
}
public get openDate(): string {
return this._openDate;
}
public set openDate(value: string) {
this._openDate = value;
}
public get closeDate(): string {
return this._closeDate;
}
public set closeDate(value: string) {
this._closeDate = value;
}
}
let myShop = new Shop("Nico's barber",
"Rivera 345",
"Colonia del Sacramento",
"Colonia",
"Uruguay",
"+59899034563",
"9:00",
"20:30")
console.log(myShop.name);
console.log(myShop.address);
console.log(myShop.city);
console.log(myShop.region);
console.log(myShop.country);
console.log(myShop.phone);
console.log(myShop.openDate);
console.log(myShop.closeDate);