create objects of the child classes using an array of parent class variable
843789Jun 1 2010 — edited Jun 1 2010Hi all,
Please help me with this one,
How do you create objects of the child classes using an array of parent class variables?
Lets assume i have a parent class called Shape, and three subclasses Triangle, Circle, and Rectangle. How will i create objects of the subclasses using an array object of the parent class variable.