title: How to create factory class which will return the derived types of common interface
body: <p>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. </p>
  
  <p>How to address this scenario?</p>