I have two different derived classes with different type properties. I need a virtual function in base class to set those properties. Thus, this function requires different types of arguments in different derived classes.
I tried to make a interface for property. But the problem is that the SetProp
of Drived_1
can receive a parameter of type Prop_2
.
How can I solve this problem?
Aucun commentaire:
Enregistrer un commentaire