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