Re: Calling a constructor from another

Tech-Archive recommends: Repair Windows Errors & Optimize Windows Performance



Sathyaish

> 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

Please see my response on the VBNet group. It's rarely worth asking the
same question on two groups, by the way - at least not without waiting
for a few days to see if you get an answer on the first group.

Cor


.



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 ... Sounding like homework;-) What language are you using? ... Prev by Date: ...
    (comp.object)
  • 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)