It is currently Tue Feb 07, 2012 9:22 pm

All times are UTC



Welcome
Welcome to RHAPSODY4YOU

You are currently viewing our boards as a guest, which gives you limited access to view most discussions and access our other features. By joining our free community, you will have access to post topics, respond to polls, upload and download content, and access many other special features. Registration is fast, simple, and absolutely free, so please, register to join our community today.





 Page 1 of 1 [ 2 posts ] 
Author Message
 Post subject: Composition and nondefault constructors
PostPosted: Fri Aug 28, 2009 2:57 pm 

Joined: Wed Dec 10, 2008 10:51 pm
Posts: 138
I'm converting a structure diagram to a class with multiple classes associated with compositions. I was able to define the initialization values for a nondefault constructor in a structured diagram, but I can't figure out how to do it with a composition association. Is this possible, or am I going to have to use "None" and instantiate it in the parent class constructor?


Offline
 Profile  
 
 Post subject: Re: Composition and nondefault constructors
PostPosted: Sat Aug 29, 2009 6:28 pm 
User avatar

Joined: Thu Sep 13, 2007 7:34 pm
Posts: 397
Location: London
There's an initialiser section in the constructor. Use that rather than the implementation. Better still, use parts. Composite relationships are old-hat.


Offline
 Profile  
 
Display posts from previous:  Sort by  
 Page 1 of 1 [ 2 posts ] 

All times are UTC


Who is online

Users browsing this forum: No registered users and 0 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:


suspicion-preferred