-
Notifications
You must be signed in to change notification settings - Fork 32
Expand file tree
/
Copy pathCustomer.cs
More file actions
26 lines (23 loc) · 693 Bytes
/
Customer.cs
File metadata and controls
26 lines (23 loc) · 693 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
using System;
using ExerciseInterfaces;
using Type = ExerciseEnums.Type;
namespace Exercise
{
public class Customer : LibraryObject, ICustomer
{
public string Address { get; set; }
public DateTime RegisteredAt { get; set; }
//Exercise states "Customer class - extending Person abstract class". There is no Person class -- it's just a property type of the LibraryObject
public Customer(string name, string addr)
{
NameOrTitle = name;
Address = addr;
RegisteredAt = DateTime.Now;
Type = Type.Person;
}
public void SetId(int id)
{
Id = id;
}
}
}