Click here to Skip to main content
12,249,797 members (52,677 online)
Click here to Skip to main content

Stats

39.8K views
495 downloads
65 bookmarked
Posted

Adapter Design Pattern

, 8 Oct 2009 CPOL
This article shows a case study about how we use the Adapter Pattern to Elizabeth's Day Care Center
www.askbargains.com
www.askbargains.com.AdapteeClass
bin
Debug
www.askbargains.com.AdapteeClass.dll
Properties
www.askbargains.com.AdapterDesignPattern
bin
Debug
www.askbargains.com.AdapteeClass.dll
www.askbargains.com.AdapterDesignPattern.dll
ClassDiagram1.cd
Properties
www.askbargains.com.Client
bin
Debug
www.askbargains.com.AdapteeClass.dll
www.askbargains.com.AdapterDesignPattern.dll
www.askbargains.com.BridgeDesignPattern.dll
www.askbargains.com.BuilderDesignPattern.dll
www.askbargains.com.Client.exe
www.askbargains.com.Client.vshost.exe
www.askbargains.com.Client.vshost.exe.manifest
www.askbargains.com.PrototypeDesignPattern.dll
Properties
www.askbargains.com.suo

namespace www.askbargains.com
{
    namespace AdapterDesignPattern
    {
        //Target methods declaration.
        public interface ITalkable
        {
            //In our case study, the following method means that Teacher can only talk in English.
            void TellMeAboutNameInEnglish();
            void TellMeAboutAgeInEnglish();
            void TellMeAboutFavorFoodInEnglish();
        }
    }
}

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.

License

This article, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

Share

About the Author

Allen _ Wang
Architect
United States United States
Sr Software Architect.Microsoft Certified Solutions Developer (MCSD).

You may also be interested in...

| Advertise | Privacy | Terms of Use | Mobile
Web01 | 2.8.160426.1 | Last Updated 8 Oct 2009
Article Copyright 2009 by Allen _ Wang
Everything else Copyright © CodeProject, 1999-2016
Layout: fixed | fluid