You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
If there is a diamond in the type hierarchy and the super-super class has any method virtual inheritance should be used in the first sub classes of the diamond. The generalization of StatefulClass could be cause problems.
Example
There is the following structure:
The inheritance in B and C should be virtual. The code sould looks like this:
classA {
public:voida() {}
}
classB : publicvirtual A {}
classC : publicvirtual A {}
classD : publicB {}
classE : publicD, publicC {}
The text was updated successfully, but these errors were encountered:
If there is a diamond in the type hierarchy and the super-super class has any method virtual inheritance should be used in the first sub classes of the diamond. The generalization of StatefulClass could be cause problems.
Example
There is the following structure:
The inheritance in B and C should be virtual. The code sould looks like this:
The text was updated successfully, but these errors were encountered: