We do not support "hidden" dynamic dispatch for references to classes,
but one can always dereference a reference with the IPE structure and
then dynamically dispatch on the class, with the class being processed
"inplace". One can create an array of References to parent and indeed
insert child references into the array, although upcasting may need to
be done. See the image for an example of an array.
Sorry, here's a bigger copy of the image. Note that we can create, insert, and index into the array of base class references. Once you index, either call static methods without dereferencing (we will auto downcast for you) or dereference with the In-Place Element Structure and call any appropriate methods.
Any idea that has received less than 4 kudos within 4 years after posting will be automatically declined.