Re: why need virtual constructor

Tech-Archive recommends: Fix windows errors by optimizing your registry

From: Simon Trew (noneofyour_at_business.guv)
Date: 04/13/04


Date: Tue, 13 Apr 2004 12:38:51 +0100


... one detail you missed, C95 and CXP would both be derived from a common
base class, and outside the factory everyone would deal in terms of that
common base class (let's call it an interface).

S.



Relevant Pages

  • Re: Unification of Methods and Functions
    ... I am suggesting that we write factory methods using classmethod to give ... my classes all implement an interface which I'll call 'shape ... Rectangle and Ellipse have a common base class, ...
    (comp.lang.python)
  • Re: OO refactoring trial ??
    ... As long as the concrete Python classes follow the form ... other common-to-all-taunts behavior, perhaps a common constructor, or ... in both Python and Java. ... return values derive from a common base class, ...
    (comp.lang.python)
  • Re: polymorphism problem: common signatures with no common parent
    ... > pattern or trick I'm not seeing...but given that the base class does not ... You have a class AB with no foo methods, ... // Class containing common method names. ... class ConditionalConverterInstance: public ConditionalConverter { ...
    (comp.lang.cpp)
  • Re: Downcasting - whats the problem?
    ... Root of the problem is while trying to model a problem domain we do abstractions, ... In the process we do refinement to identified classes and ... into a separate class (base class). ... When we want to invoke certain behavior on all objects that have common behavior. ...
    (comp.object)
  • Re: Basic Web Design Quesion
    ... Create a base class that all your pages inherit from, ... Use user controls, or custom server controls. ... and if your overall page design layout changes in the ... Basically what I want is to have some text/code that is common to all pages, ...
    (microsoft.public.dotnet.framework.aspnet)