ch3p-Table (base class, furniture)
AppParty KitchenChair | DiningTable |
Table.cs
namespace party.house.rooms.furniture
{
abstract class Table
{
string name;
public string Id
{
get
{
return name;
}
set
{
name = value;
}
}
public Table(string s)
{
Id = s; // calling the set accessor of the Id property
}
abstract public void ClearTable();
override public string ToString()
{
return $"{Id}";
}
}
}
AppParty KitchenChair | BACK_TO_TOP | DiningTable |
Comments
Post a Comment