|
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace www.askbargains.com.BridgeDesignPattern
{
public class Director : ICommunicator
{
ITalkable aKid;
#region ICommunicator Members
public ITalkable objToTalk
{
get
{
return aKid;
}
set
{
aKid = value;
}
}
public void StartChatting()
{
Console.WriteLine("Hi , can your tell me your name?");
aKid.TellMeAboutName();
Console.WriteLine("Hi , can you tell my your age?");
aKid.TellMeAboutAge();
}
#endregion
}
}
|
By viewing downloads associated with this article you agree to the Terms of Service and the article's licence.
If a file you wish to view isn't highlighted, and is a text file (not binary), please
let us know and we'll add colourisation support for it.