Lets say I have a Base class as Parent and I want to know how many classes are derived from this class at runtime and create objects of all those classes along with calling the pure virtual function I declared in my Parent class.
How to do this in c++