From 465630f561232014df486472ebd21199eedb47d3 Mon Sep 17 00:00:00 2001 From: Gihun Ham Date: Fri, 2 Apr 2021 16:02:17 +0900 Subject: [PATCH] =?UTF-8?q?3299=20=ED=95=A8=EA=B8=B0=ED=9B=88=20=ED=81=B4?= =?UTF-8?q?=EB=9E=98=EC=8A=A4=20=EC=B6=94=EA=B0=80?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- HelloStudents/HelloStudents.csproj | 1 + HelloStudents/Program.cs | 11 ++++++++++- HelloStudents/Student3299Ham.cs | 16 ++++++++++++++++ 3 files changed, 27 insertions(+), 1 deletion(-) create mode 100644 HelloStudents/Student3299Ham.cs diff --git a/HelloStudents/HelloStudents.csproj b/HelloStudents/HelloStudents.csproj index 23de553..ac7dcec 100644 --- a/HelloStudents/HelloStudents.csproj +++ b/HelloStudents/HelloStudents.csproj @@ -54,6 +54,7 @@ + diff --git a/HelloStudents/Program.cs b/HelloStudents/Program.cs index 2e676e4..511c44f 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 @@ -104,6 +104,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 + "입니다"; + } + } +}