diff --git a/HelloStudents/HelloStudents.csproj b/HelloStudents/HelloStudents.csproj index 1428d59..0a37597 100644 --- a/HelloStudents/HelloStudents.csproj +++ b/HelloStudents/HelloStudents.csproj @@ -54,6 +54,7 @@ + diff --git a/HelloStudents/Program.cs b/HelloStudents/Program.cs index 50ee58c..67b5895 100644 --- a/HelloStudents/Program.cs +++ b/HelloStudents/Program.cs @@ -43,7 +43,7 @@ static void Main(string[] args) FirstName = "나은", LastName = "김", StudentNumber = 3103, - BaseYear = 2020 + BaseYear = 2021 }); // 3104 // 3105 @@ -128,6 +128,15 @@ static void Main(string[] args) // 3218 // 3219 // 3220 + // 3299 + students.Add( + new Student3299Ham() + { + FirstName = "기훈", + LastName = "함", + StudentNumber = 3299, + BaseYear = 2021 + }); // 학번 순으로 정렬 students.Sort(); diff --git a/HelloStudents/Student3299Ham.cs b/HelloStudents/Student3299Ham.cs new file mode 100644 index 0000000..cb1f002 --- /dev/null +++ b/HelloStudents/Student3299Ham.cs @@ -0,0 +1,16 @@ +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; +using System.Threading.Tasks; + +namespace HelloStudents +{ + class Student3299Ham : StudentBase + { + public override string Hello() + { + return "무야호~ 나는 " + this + "입니다"; + } + } +}