ch3p-Chair (base class, furniture)

AppParty     Bed ArmChair







Chair.cs


namespace party.house.rooms.furniture
{
abstract class Chair
{
string name;

public string Id
{
get
{
return name;
}

set
{
name = value;
}
}

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

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









AppParty     Bed BACK_TO_TOP ArmChair



Comments

Popular posts from this blog

Contents