Having instances of Both Child class and Parent class within a module

In reply to rag123:

To add to rag123, a variable declaration whether it be a class or any other type must come before any procedural statement within a procedural block of code. (begin/end, fork/join, task/function). This is a BNF restriction.