Head First C#

Head First C# Code: Chapter 7
Explore the House
RoomWithDoor.cs

 

using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace __Explore_the_House
{
    public class RoomWithDoor : Room, IHasExteriorDoor
    {
        public RoomWithDoor(string name, string decoration, string doorDescription)
            : base(name, decoration)
        {
            this.doorDescription = doorDescription;
        }

        private string doorDescription;
        public string DoorDescription
        {
            get { return doorDescription; }
        }

        private Location doorLocation;
        public Location DoorLocation
        {
            get { return doorLocation; }
            set { doorLocation = value; }
        }
    }
}