20 lines
371 B
C#
20 lines
371 B
C#
namespace OwnerClass;
|
|
|
|
class Owner
|
|
{
|
|
public int Id { get;}
|
|
public string Name { get;}
|
|
public string Address { get;}
|
|
|
|
public override string ToString()
|
|
{
|
|
return "Name: " + Name + ", Address: " + Address;
|
|
}
|
|
|
|
public Owner(int id, string name, string address)
|
|
{
|
|
Id = id;
|
|
Name = name;
|
|
Address = address;
|
|
}
|
|
}
|