From 04:00 PM CDT – 08:00 PM CDT (09:00 PM UTC – 01:00 AM UTC) Tuesday, April 16, will undergo system upgrades that may result in temporary service interruption.

We appreciate your patience as we improve our online experience.


Showing results for 
Search instead for 
Did you mean: 

Simple LabVIEW Class Error

Go to solution

Im just trying to learn about classes.  Here is a simple program that is throwing an error on the class down-cast -


Why is this error happening?  The Parent-Child hierarchy is correct.  I created "Method" of the Parent using the Dynamic Dispatch template and set it to "must override".  The child "Method" is a VI for Override of the parent. version of Method





0 Kudos
Message 1 of 3
Accepted by topic author TrapperDoo

A Parent is not a Child.  So if you initialized as a Parent, you cannot downcast to a Child.  If you started with a Child, you can upcast to a Parent and later downcast to a Child.

There are only two ways to tell somebody thanks: Kudos and Marked Solutions
Unofficial Forum Rules and Guidelines
"Not that we are sufficient in ourselves to claim anything as coming from us, but our sufficiency is from God" - 2 Corinthians 3:5
Message 2 of 3

I get it now.  Thanks for helping me.

0 Kudos
Message 3 of 3