06-13-2012 12:57 PM - edited 06-13-2012 01:00 PM
Question,
If a parent method is cast down to a child class, and then a method is used to update some of the data in the class data, can that data be seen with a probe on the outgoing object wire? Or is the data seen the data in the parent class data and not the child?
I have an issue where the parent class is executed instead of the child class and I can't figure out why...
thanks for any ideas.
Solved! Go to Solution.
06-13-2012 01:17 PM - edited 06-13-2012 01:19 PM
I'm not sure if I know specifically what you're asking, but maybe this will help.
The default probes will show you the data that makes up the type of the wire. So, for children classes it shows the childs data and any ancestor data.
If it's a top level class wire it will only show the data for the parent class, but will inform you of the actual type of the wire, since we know children can pass as their parents.
Now, I think what you're asking is if it's possible to see the childrens data, on a parent's wire. I'm not sure, but you may be able to make custom probes to show you more information based on actual type.
06-13-2012 01:29 PM
@PatLyons wrote:
I have an issue where the parent class is executed instead of the child class and I can't figure out why...
Regarding your actual issue, I would start by checking the class terminals on the connector pane to make sure they are set for dynamic dispatching.
06-13-2012 01:30 PM
Kudos to you sir, thanks for the info, this helps me narrow down my issue.
Thanks again