Hi
I have Request classes, say X, Y, Z. These classes will have some common attributes and some unique attributes.
I tried to put the common attributes in an abstract class (AbstractRequest) and subclasses (XRequest, YRequest, ZRequest).
But the problem I face is this: while creating instances, I need to create instances of subclasses and not abstract class.
This is not generic. Any suggestions as to what I can do?