Choose what interface to implement at runtime
问题 I'm wondering if, in Java, there is a way to create an object from a class implementing multiple interfaces, but choosing at runtime what interfaces should be implemented. Those interfaces would have no methods, this would be a way to create an object by defining at run time which attributes should have. That is my real problem. USE CASE: I have a class with a huge number of attributes but the objects created from this class would use only some of those attributes, some will be in common