This repository has been archived on 2024-10-24. You can view files and clone it, but cannot push or open issues or pull requests.
NG_2023_Stanislav_Mykhailenko/Lesson_2/Task_3/Customer.cs
2023-03-20 02:14:49 +02:00

20 lines
No EOL
401 B
C#

namespace CustomerClass;
class Customer
{
public string Name { get;}
public int Age { get;}
public string Address { get;}
public override string ToString()
{
return "Name: " + Name + ", Age: " + Age + ", Address: " + Address;
}
public Customer(string name, int age, string address)
{
Name = name;
Age = age;
Address = address;
}
}