"interface"

From: seesaw (seesaw_at_turboweb.com)
Date: 04/29/04


Date: Thu, 29 Apr 2004 04:41:56 GMT

When define an interface of all pure virtual functions, will the destructor
of it will automatically virtual, or it has to be declared as virtual?
Should it be declared as "virtual" when defining the interface?



Relevant Pages

  • Re: C++ interface
    ... > destructor because they don't exist for the interface. ... > constructors, destructor and etc. ... If you can somehow be sure no derived class will have a destructor ...
    (comp.lang.cpp)
  • Re: Dispose, Dispose(true), Finalize, IDisposable
    ... the Destructor such as ... There is no extra code executed when an object goes out of scope, as there is in a system using reference counting, so there is no way that you can make anything happen when an object goes out of scope. ... There is nothing magic about the IDisposable interface, it's just an interface as any other. ... system should still have the responsibility to clean up. ...
    (microsoft.public.dotnet.general)
  • Re: Derived destructor not being called
    ... I've been working on an IDL implementention and I'm having problems ... interface IMyDerived: IMyBase { ... // I'm hoping that the destructor in CMyDerived will be called ... keep un-addref'd pointers to COM objects in containers, ...
    (microsoft.public.vc.language)
  • Re: "interface"
    ... "seesaw" wrote in message ... > When define an interface of all pure virtual functions, ... > destructor of it will automatically virtual, or it has to be declared ...
    (comp.lang.cpp)
  • Re: [Help me!!] Why isnt ActiveXs destructor in PIE, WM2003?
    ... This seems to be a problem with Pocket IE on Pocket PC 2003. ... explicitly call Release on the interface. ... > destructor of my ActiveX control was not called. ... > out the reason, after all the reason why the destructor was not called ...
    (microsoft.public.pocketpc.developer)