ch3p-Tool (base class)

AppParty     Candle Match







Tool.cs


namespace party.house.rooms.tools
{
abstract class Tool
{
string name;

public string Id
{
get
{
return name;
}

set
{
name = value;
}
}

public Tool(string s)
{
Id = s; // calling the set accessor of the Id property
}

override public string ToString()
{
return $"{Id}";
}
}
}









AppParty     Candle BACK_TO_TOP Match



Comments

Popular posts from this blog

Contents