Re: Interface-based programming

From: Jeff Louie (jeff_louie_at_yahoo.com)
Date: 09/25/04

  • Next message: Bob Grommes: "Re: Two things that bug me about C#"
    Date: Sat, 25 Sep 2004 13:22:32 -0700
    
    

    Patrick... I think the argument is to provide "an abstract skeletal
    implementation class for each nontrial interface that you export" and to
    use
    interfaces "only to define types".

    Regards,
    Jeff
    >So every time I design a class, it should have a corresponding
    interface?<

    *** Sent via Developersdex http://www.developersdex.com ***
    Don't just participate in USENET...get rewarded for it!


  • Next message: Bob Grommes: "Re: Two things that bug me about C#"

    Relevant Pages

    • Remote COM Server questions
      ... need to return an interface of another object from the method. ... In this case, object was not a coclass, it was just a plain ... I the implementation class is a coclass now. ... surrogate crashes - I can't call Clone method. ...
      (microsoft.public.vc.atl)
    • Re: ATL Component Versioning
      ... replace the v1 DLL with the v2 DLL all compiled programs that used ... The v2 implementation class needs to derive from the same interfacethat ... the v1 implementation class did, and the v2 object needs to reside in the ... interface pointers are requested. ...
      (microsoft.public.win32.programmer.ole)
    • Re: Accessing Singleton via an Interface
      ... factory to separate the implementation class from the Singleton ... public interface iAFactoryFunctor { ... since its constructor cannot be private ...
      (comp.object)
    • Creating restrictions on the values returned
      ... I am creating an interface which has a method that returns a list of ... implementation class will adhere to the numbers. ... One of the ways could be change the return type to an iterator and ...
      (comp.object)
    • Re: Questions of Designs
      ... don't you see that this C++ abstract interface ABC has NO ... > implementation of the same provided by CORBA objects. ... > implementation class synch more then base abstract class and concrete implementation class. ...
      (comp.object)

    Loading