Hi all,
we are about to create classes for processing all sorts of business partners which have different roles in our system. One of the things we are not sure about is this:
A business partner is assigned a certain role (in some cases even more than one). Based on this role, it has certain attributes, it will need different methods etc. The question now is, how to model this?
Should we create a superclass (abstract maybe), let's call it ZCL_PARTNER and per role create a subclass. Based on the role this subclass has new attributes and different methods (beside the ones that are inherited of course).
Of create one (superclass) which has the roles as attribute and next create all the methods we need for all the business partner roles? Even though some of the methods are quite specific for a certain role.
Or is there a better way? I'm looking for some sort of best practices.
Thanks in advance.
Micky.