|
using System;
namespace www.askbargains.com
{
namespace AdapterDesignPattern
{
//regular ITalkable class that system can directly talk to.
public class EnglishSpeakerKid : ITalkable
{
public string Name { get; set; }
public int Age { get; set; }
public string FavorFood { get; set; }
#region ITalable Members
public void TellMeAboutNameInEnglish()
{
Console.WriteLine("My name is {0}", Name);
}
public void TellMeAboutAgeInEnglish()
{
Console.WriteLine("I am {0} years old", Age.ToString());
}
public void TellMeAboutFavorFoodInEnglish()
{
Console.WriteLine("My favor food is {0}", FavorFood);
}
#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.