-
Notifications
You must be signed in to change notification settings - Fork 0
/
main.cs
32 lines (27 loc) · 831 Bytes
/
main.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
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace Libary_Management
{
class Program
{
static void Main(string[] args)
{
ILibraryUser objKids1 = new KidsUser();
ILibraryUser objKids2 = new KidsUser();
objKids1.registerAccount(10);
objKids2.registerAccount(18);
objKids1.requestBook("Kids");
objKids2.requestBook("Fiction");
ILibraryUser objAdult1 = new AdultUser();
ILibraryUser objAdult2 = new AdultUser();
objAdult1.registerAccount(5);
objAdult2.registerAccount(23);
objAdult1.requestBook("Kids");
objAdult2.requestBook("Fiction");
Console.ReadKey();
}
}
}