From 210215c0f1ad24f9f02e5827a1d2d7cf71b5b731 Mon Sep 17 00:00:00 2001 From: Gihun Ham Date: Mon, 29 Mar 2021 15:55:27 +0900 Subject: [PATCH] =?UTF-8?q?3119=20Ham=20=ED=95=99=EC=83=9D=20=EC=A0=95?= =?UTF-8?q?=EB=B3=B4=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 | 8 ++++++++ HelloStudents/Student3199Ham.cs | 17 +++++++++++++++++ 3 files changed, 26 insertions(+) create mode 100644 HelloStudents/Student3199Ham.cs diff --git a/HelloStudents/HelloStudents.csproj b/HelloStudents/HelloStudents.csproj index 401c607..730e5c4 100644 --- a/HelloStudents/HelloStudents.csproj +++ b/HelloStudents/HelloStudents.csproj @@ -46,6 +46,7 @@ + diff --git a/HelloStudents/Program.cs b/HelloStudents/Program.cs index 0d6d98c..68f887b 100644 --- a/HelloStudents/Program.cs +++ b/HelloStudents/Program.cs @@ -24,6 +24,14 @@ static void Main(string[] args) FirstName = "기훈", LastName = "함", StudentNumber = 3099, BaseYear = 2020 }); + students.Add( + new Student3199Ham() + { + FirstName = "Gihun", + LastName = "Ham", + StudentNumber = 3199, + BaseYear = 2021 + }); // 3101 // 3102 // 3103 diff --git a/HelloStudents/Student3199Ham.cs b/HelloStudents/Student3199Ham.cs new file mode 100644 index 0000000..006f537 --- /dev/null +++ b/HelloStudents/Student3199Ham.cs @@ -0,0 +1,17 @@ +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; +using System.Threading.Tasks; + +namespace HelloStudents +{ + + class Student3199Ham : StudentBase + { + public override string Hello() + { + return "안녕? 나는 " + this + "님이셔라!"; + } + } +}