I have an Interface and it is implemented by many classes. Each class also has its own set of properties which are not present in interface. Now, if I want to design a factory which returns of type interface, I cannot set some of the derived class properties as they are not member of interface.
How to address this scenario?
Aucun commentaire:
Enregistrer un commentaire