Diamond inheritance (C++)
问题 I know that having diamond inheritance is considered bad practice. However, I have 2 cases in which I feel that diamond inheritance could fit very nicely. I want to ask, would you recommend me to use diamond inheritance in these cases, or is there another design that could be better. Case 1: I want to create classes that represent different kinds of "Actions" in my system. The actions are classified by several parameters: The action can be "Read" or "Write". The action can be with delay or