Re: Calling a constructor from another



"Sathyaish" <Sathyaish@xxxxxxxxx> wrote in message
news:1116814169.107288.101710@xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
> How does a constructor of one class call another of the same class?
> When would this mechanism make sense or be required?
>
>
> PS: Two instances I saw are:
>
> (a) While using the Singleton pattern
> (b) While using the Factory pattern
>

Sounding like homework ;-) What language are you using?


.



Relevant Pages

  • Re: Calling a constructor from another
    ... > How does a constructor of one class call another of the same class? ... > While using the Singleton pattern ... Cor ... Prev by Date: ...
    (microsoft.public.dotnet.general)
  • Singleton Pattern & Serialization
    ... My problem is the Singleton Pattern 'requires' the constructor to be Private ... Prev by Date: ...
    (microsoft.public.dotnet.languages.vb)
  • Calling a constructor from another
    ... How does a constructor of one class call another of the same class? ... While using the Singleton pattern ... While using the Factory pattern ... Prev by Date: ...
    (microsoft.public.dotnet.faqs)
  • Calling a constructor from another
    ... How does a constructor of one class call another of the same class? ... While using the Singleton pattern ... While using the Factory pattern ... Prev by Date: ...
    (microsoft.public.dotnet.languages.csharp)
  • Calling a constructor from another
    ... How does a constructor of one class call another of the same class? ... While using the Singleton pattern ... While using the Factory pattern ... Prev by Date: ...
    (microsoft.public.dotnet.languages.vb)