How i can call the function of derived class, without typecasting?
base type:
class Fruit{
public: 
    virtual void show() {cout « "its a fruct" « endl;}
};
child:
class Banana : public Fruit{
public: 
    void show() { cout « "it's yellow banana" « endl; }
};
array of derived pointers
class Basket
{
  Fruit *fructs_; 
  //... 
public:
  void show();
  //...
};
void Basket:: show(){
  for(int i=0; i< index_; i++)
  (fructs_+i)->show(); // need call Banana::show here
}
 
    