Skip to main content

You are not logged in. Your edit will be placed in a queue until it is peer reviewed.

We welcome edits that make the post easier to understand and more valuable for readers. Because community members review edits, please try to make the post substantially better than how you found it, for example, by fixing grammar or adding additional resources and hyperlinks.

Required fields*

4
  • can you add an example? Is this a valid example for your question? You have an orderobject (=parent) with orderitems (children) and want to update the order total when an orderitem-quantity is changed? or are thinking of something completely different? Commented May 22, 2012 at 13:18
  • @k3b Yeah that's a valid example. Some information in the child has changed requiring the parent to do something. Commented May 22, 2012 at 13:23
  • just add some constructor parameters and reference data members to each child class. Commented May 22, 2012 at 23:00
  • Does the child need to know all about the parent, or would a simple delegate be sufficient? Commented Sep 14, 2013 at 12:48