Question

4
Replies
352
Views
rodrigoamorim Member since 2017 3 posts
Capgemini
Posted: 1 year ago
Last activity: 1 year 5 months ago
Closed
Solved

Best Practice for Properties

Let's suppose I need a property in a class parent class, I, also, need it to have different values on its 'table type' list on child classes.

Something like this:

Class Vehicle > Prop: MyOption

Class Vehicle-Car > Prop: MyOption (inherited) [Local list: 'A', 'B' or 'C']

Class Vehicle-Boat > Prop: MyOption (inherited) [Local list: 'X', 'Y' or 'Z']

What would be the best approach:

  • Save the MyOption on child classes (Pega alerts for duplicated);
  • Circunstance MyOption by child class (Wouldnt it be a class specialization?);

Thanks

Low-Code App Development
Moderation Team has archived post
Share this page LinkedIn