-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathProgram.cs
More file actions
32 lines (30 loc) · 1.04 KB
/
Program.cs
File metadata and controls
32 lines (30 loc) · 1.04 KB
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 PersonTaskAbstract
{
class Program
{
static void Main(string[] args)
{
Student st1 = new Student("Alex", "Grigorjev", "123123", "WEB", 1);
Student st2 = new Student("Alex", "Grigorjev", "123123", "WEB", 1);
Student st3 = new Student("Alex", "Ivanov", "123123", "WEB", 1);
Student st4 = new Student("Ivan", "Ivanov", "345", "Tech", 2);
Console.WriteLine(st1);
StudentList list = new StudentList();
Console.WriteLine(list.AddStudent(st1));
Console.WriteLine(list.AddStudent(st2));
Console.WriteLine(list.AddStudent(st3));
Console.WriteLine(list.AddStudent(st4));
string temp = list.FindStudentByFamily("Ivanov");
if(temp == "")
{
Console.WriteLine("Empty");
}
else
{
Console.WriteLine(temp);
}
list.Print();
}
}
}