I have two classes that similar in every thing but member display names are different. My solution was creating two classes, but this is not compliant with coding standards. Is there another way to solve that? I expect that supporting multiple [Display name] values, or separate [Display name] for each instance maybe help me.
Asked
Active
Viewed 99 times
0
-
1Can you provide some code or example to describe the problem more clearly? – Chen Aug 03 '22 at 03:07
1 Answers
0
If I'm not misunderstanding your problem, you can create a superclass, collect the common features in this class, and then inherit the other classes.

Berk KARASU
- 71
- 1
- 9