ch3p-Ornament (base class)

AppParty     KitchenTable Candle







Ornament.cs


namespace party.house.rooms.ornaments
{
abstract class Ornament
{
string name;

public string Id
{
get
{
return name;
}

set
{
name = value;
}
}

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

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









AppParty     KitchenTable BACK_TO_TOP Candle



Comments

Popular posts from this blog

Contents