Click here to Skip to main content
Click here to Skip to main content
Add your own
alternative version

Adapter Design Pattern

, 8 Oct 2009
This article shows a case study about how we use the Adapter Pattern to Elizabeth's Day Care Center
AdapterDesignPattern_src.zip
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)

About the Author

Allen _ Wang
Architect
United States United States
Sr Software Architect.Microsoft Certified Solutions Developer (MCSD). owner of www.askbargains.com.

| Advertise | Privacy | Mobile
Web04 | 2.8.140721.1 | Last Updated 8 Oct 2009
Article Copyright 2009 by Allen _ Wang
Everything else Copyright © CodeProject, 1999-2014
Terms of Service
Layout: fixed | fluid