Hi experts,
I am facing a problem, please help me out.
There are several constant interfaces which store attributes. The interfaces totally the same but their attributes contain different value.
Interface1
attribute: attribute1
attribute2
attribute3
attribute4
attribute5
attribute6
Interface2
attribute: attribute1
attribute2
attribute3
attribute4
attribute5
attribute6
I would like to create a dynamic way to retrieve attributes from the interfaces. I am not allowed to use any if..else or case statement because I hav to consider about the future reuse.
Currently I only know the interface name and attribute name(passed by parameter). Please help me to retrieve the attributes form the interfaces.
Many thanks in advance!
Best Regards,
Alex