in reply to [Solved] Inheritance when subclass passed as a parameter
Please indicate where in your code you believe that you are instantiating any object of a subclass, because it isn't clear to me that this is happening.