2024-12-16 11:28:31 +04:00

27 lines
554 B
C#

using static System.Windows.Forms.VisualStyles.VisualStyleElement;
using System.Xml.Linq;
namespace Test
{
public class Student
{
public int Id { get; set; }
public string Surname { get; set; } = string.Empty;
public int? Height { get; set; }
public int? Iq { get; set; }
public Student(int id, string surname, int? height, int? iq)
{
Id = id;
this.Surname = surname;
this.Height = height;
this.Iq = iq;
}
public Student() { }
public override string ToString()
{
return $"Surname: {Surname}, Iq: {Iq}";
}
}
}