Calling a constructor from another
- From: "Sathyaish" <Sathyaish@xxxxxxxxx>
- Date: 22 May 2005 19:09:29 -0700
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
.
- Follow-Ups:
- Re: Calling a constructor from another
- From: H. S. Lahman
- Re: Calling a constructor from another
- From: Shane Mingins
- Re: Calling a constructor from another
- Prev by Date: Re: Lahman, how ya doing?
- Next by Date: Re: Using Analytical vs. Enumerative methods
- Previous by thread: UML: Associations between classes and packages
- Next by thread: Re: Calling a constructor from another
- Index(es):
Relevant Pages
|