BasicKnowledgeCSharp/LessonsAndTasks/Lesson 70 - синтаксис инициализации объектов класса/Person.cs

18 lines
433 B
C#
Raw Normal View History

2025-05-12 02:48:54 +03:00
/*
* Author: Nikolay Dvurechensky
* Site: https://www.dvurechensky.pro/
* Gmail: dvurechenskysoft@gmail.com
* Last Updated: 12 мая 2025 02:47:11
* Version: 1.0.3
*/
class Person
2024-10-05 09:59:53 +03:00
{
public string FirstName { get; set; }
public string LastName { get; set; }
public Address Address { get; set; }
public override string ToString()
{
return $"FirstName: {FirstName}, LastName: {LastName} ";
}
}