theme changed
This commit is contained in:
20
labs/lab9/LearningCenter/Student.cs
Normal file
20
labs/lab9/LearningCenter/Student.cs
Normal file
@@ -0,0 +1,20 @@
|
||||
using System;
|
||||
|
||||
class Student : Person
|
||||
{
|
||||
public string Faculty { get; }
|
||||
public int Course { get; }
|
||||
|
||||
public Student(string lastName, DateTime birthDate, string faculty, int course)
|
||||
: base(lastName, birthDate)
|
||||
{
|
||||
Faculty = faculty;
|
||||
Course = course;
|
||||
}
|
||||
|
||||
public override void Show()
|
||||
{
|
||||
Console.WriteLine("Студент: {0}, факультет: {1}, курс: {2}, возраст: {3}", LastName, Faculty, Course, Age());
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user