-
Notifications
You must be signed in to change notification settings - Fork 0
/
KidsUser.cs
40 lines (34 loc) · 1004 Bytes
/
KidsUser.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
40
using System;
using System.Collections.Generic;
using System.Linq;
using System.Security.Cryptography.X509Certificates;
using System.Text;
using System.Threading.Tasks;
namespace Libary_Management
{
public class KidsUser : ILibraryUser
{
public void registerAccount(int Age)
{
if (Age<12)
{
Console.WriteLine("You have successfully registered under a Kids Account");
}
else
{
Console.WriteLine("Sorry, Age must be less than 12 to register as a kid");
}
}
public void requestBook(string bookType)
{
if (bookType == "Kids")
{
Console.WriteLine("Book Issued successfully, please return the book within 10 days");
}
else
{
Console.WriteLine("Oops, you are allowed to take only kids books");
}
}
}
}