dual hierarchy example: interface hierarchies fix (#2122)

Co-authored-by: Mikhail Berezhanov <mpb@martistel.com>
pull/2125/head
MikhailBerezhanov 2 years ago committed by GitHub
parent e1b17ec9a5
commit 7c9dd4dda8
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -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.

Loading…
Cancel
Save