mirror of
https://github.com/isocpp/CppCoreGuidelines.git
synced 2025-12-17 04:44:34 +03:00
dual hierarchy example: interface hierarchies fix (#2122)
Co-authored-by: Mikhail Berezhanov <mpb@martistel.com>
This commit is contained in:
committed by
GitHub
parent
e1b17ec9a5
commit
7c9dd4dda8
@@ -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.
|
||||
|
||||
|
||||
Reference in New Issue
Block a user