hi
i have a base class and many other class that i have derived from this class
1 2 3 4 5
class Base{};
class Deri1: public Base{};// with private methode and attribut
class Deri2: public Base{};// with private methode and attribut
..
..
now i am parsing a buffer and so instanciate one of this class and stok it in a vector<Base*> myvector;
i relosve that with the cast
and after that, when i would like to do myvector[i]->methodeofDeri1();//this methode is public
i will generate an error error: class Base had no member call methodeofDeri1();