|
-
Jul 5th, 2006, 12:10 AM
#5
Thread Starter
Addicted Member
Re: [02/03] calling constructor within a constructor
 Originally Posted by jmcilhinney
Constructors are just methods so you can call them from each other like any other method, except that you would only ever call one other constructor and you would always do it as the first operation. It is preferable to have an overloaded constructor and have the more basic overloads pass default values to the more complex ones rather than have a single constructor with optional parameters.
right, that means i can do it. i.e. calling the constructor of one class within the constructor of another class
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|