-
Notifications
You must be signed in to change notification settings - Fork 32
Expand file tree
/
Copy pathPerson.cs
More file actions
32 lines (28 loc) · 714 Bytes
/
Person.cs
File metadata and controls
32 lines (28 loc) · 714 Bytes
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
using System;
namespace Exercise
{
public class Customer : LibObject, IRegistarable
{
public string Address { get; set; }
public DateTime RegisteredAt { get; set; }
public Customer(string name, string addr)
{
NameOrTitle = name;
Address = addr;
RegisteredAt = DateTime.Now;
ObjType = ObjectType.Person;
}
public void SetId(int id)
{
ObjectId = id;
}
public RegisteredObject GetRegistrationInfo()
{
return new RegisteredObject()
{
AvailableAmount = 1,
Info = NameOrTitle
};
}
}
}