Just a short question. I was wondering if one has a base class for example bird and a derived class pigeon, if i instantiate an object of each class, B1 and P1.
Is it possible to pass the address of B1 or P1 into a function
such as DoSomething(&B1) and DoSomething(&P1) (I need to have DoSomething handle both birds and pigeons!)
and then in the function have P1->Amethod() or B1->Amethod where Amethod is defined in the base class bird and should work for both bird and pigeon.
Thanks for the help, it's kind of difficult to explain so try and do your best!