static void Main(string[] args) { Bed bed = RoomObject.RoomName("Bed"); Console.WriteLine(bed.name); //outline:Bed Console.Read(); }