diff --git a/HelloStudents/HelloStudents.csproj b/HelloStudents/HelloStudents.csproj index 1428d59..c0271da 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..dd7e5a7 100644 --- a/HelloStudents/Program.cs +++ b/HelloStudents/Program.cs @@ -103,6 +103,14 @@ static void Main(string[] args) BaseYear = 2021 }); // 3210 + students.Add( + new Student3210Park() + { + FirstName = "지윤", + LastName = "박", + StudentNumber = 3210, + BaseYear = 2021 + }); // 3211 students.Add( new Student3211Son() diff --git a/HelloStudents/Student3210Park.cs b/HelloStudents/Student3210Park.cs new file mode 100644 index 0000000..39fd80d --- /dev/null +++ b/HelloStudents/Student3210Park.cs @@ -0,0 +1,17 @@ +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; +using System.Threading.Tasks; + +namespace HelloStudents +{ + + class Student3210Park : StudentBase + { + public override string Hello() + { + return "안녕? 나는 " + this + "이야"; + } + } +}