Hi all,

how can I must redefine a virtual function member to return different values from the derived classes ???

i.e :

class population
{
public :
virtual getindividual();
}

class subpopulation1 : public population
{
public :
(type1 *) getindividual();
}

class subpopulation2 : public population
{
public :
(type2 *) getindividual();
}

Is this well done ?

Thanks for your knowledge.