PIbd-32_Shabunov_O.A._COP/FormsTesting/TestPerson.cs
2024-09-10 21:45:18 +04:00

30 lines
570 B
C#

namespace ShabComponentsLibrary
{
public class TestPerson
{
public int Id { get; set; }
public string FirstName { get; set; } = string.Empty;
public string LastName { get; set; } = string.Empty;
public int Age { get; set; }
public TestPerson()
{ }
public TestPerson(int Id, string FirstName, string LastName, int Age)
{
this.Id = Id;
this.FirstName = FirstName;
this.LastName = LastName;
this.Age = Age;
}
public override string ToString()
{
return $"[{Id}] {FirstName} {LastName}. Возраст: {Age}";
}
}
}