20 lines
401 B
C#
20 lines
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;
|
||
|
}
|
||
|
}
|