dcsimg
CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 2 of 2

Thread: Facade and Singleton!!!!

  1. #1
    Join Date
    Apr 2004
    Posts
    123

    Facade and Singleton!!!!

    Hi,

    Will a facade be always a singleton object or we can have multiple instances of a facade???

    Thanks in advance for any suggestions/explanations..

    Thanks,
    Mmx

  2. #2
    Join Date
    Aug 2007
    Location
    Minneapolis
    Posts
    155

    Re: Facade and Singleton!!!!

    Facade (simplifies the interface) and Singleton (ensures fixed number, usually 1, of instances for a given object in a library) are two independent design patterns. A Facade may provide an interface to a set of classes or even an entire library and may or may not make sense for it to be Singleton, depending on the scenario. So, if you describe the scenario, I could give you some more ideas. . .

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  


Windows Mobile Development Center


Click Here to Expand Forum to Full Width




On-Demand Webinars (sponsored)