jgcode Posted August 25, 2011 Report Share Posted August 25, 2011 The child constructor may or may not (often not) have the same creation requirements on the parent class data fields. That's cool. Oppositely, I find it handy most of the time as the constructor has data inputs for parent data that I just wire in when calling it in the child. Quote Link to comment
Aristos Queue Posted August 28, 2011 Report Share Posted August 28, 2011 Nope... almost never in fact. I'm not constructing a parent object, I'm constructing a child object, so calling a parent constructor seems out of place to me and makes the code more confusing (IMO.) The child constructor may or may not (often not) have the same creation requirements on the parent class data fields. Daklu: Your opinion is probably shared by most LV users who haven't worked in other languages because LV doesn't have constructors with parameters. If it did, you would probably find yourself wanting to reuse your parent's constructors about as often as you want to use the Call Parent Node in any other method. Quote Link to comment
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.