Question
Capgemini
BR
Last activity: 27 Mar 2019 13:27 EDT
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