-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathBoat.cs
39 lines (32 loc) · 812 Bytes
/
Boat.cs
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
namespace TcpJsonClient
{
class BoatClass
{
string Type = "Boat";
private string _boat;
private string _owner;
private string _sailNumber;
public string Boat
{
get { return _boat; }
set { _boat = value; }
}
public string Owner
{
get { return _owner; }
set { _owner = value; }
}
public string SailNumber
{
get { return _sailNumber; }
set { _sailNumber = value; }
}
public BoatClass(string pBoatName, string pBoatOwner, string pSailNumber)
{
Boat = pBoatName;
Owner = pBoatOwner;
SailNumber = pSailNumber;
}
}
}