This is within C++ code
YInterface ** Y_list;
int numberofYInterfaces;
then
numberofYInterfaces=1;
Y_list = new YInterface *[numberofYInterfaces]; //What ??????
I have a very hard time picturing the structure of Y_list? And then imagine my confusion when and if the numberofYInterfaces becomes more than one, even 2?
OOPS sorry and I forgot to write this below statement:
Y_list[i]= new AnotherClass();
//later addition to my orginal question . Thanks for the headsup Eric Fortin. Note: AnotherClass is inherited from YInterface.
Any help is appreciated