dual hierarchy example: interface hierarchies fix (#2122)

Co-authored-by: Mikhail Berezhanov <mpb@martistel.com>
This commit is contained in:
MikhailBerezhanov
2023-08-14 18:45:43 +04:00
committed by GitHub
parent e1b17ec9a5
commit 7c9dd4dda8

View File

@@ -7542,7 +7542,7 @@ For example, `center` has to be implemented by every class derived from `Shape`.
##### Example, dual hierarchy
How can we gain the benefit of stable hierarchies from implementation hierarchies and the benefit of implementation reuse from implementation inheritance?
How can we gain the benefit of stable hierarchies from interface hierarchies and the benefit of implementation reuse from implementation inheritance?
One popular technique is dual hierarchies.
There are many ways of implementing the idea of dual hierarchies; here, we use a multiple-inheritance variant.