From 7c9dd4dda83d1039a2f136d957f9cf099b6cd231 Mon Sep 17 00:00:00 2001 From: MikhailBerezhanov <35196259+MikhailBerezhanov@users.noreply.github.com> Date: Mon, 14 Aug 2023 18:45:43 +0400 Subject: [PATCH] dual hierarchy example: interface hierarchies fix (#2122) Co-authored-by: Mikhail Berezhanov --- CppCoreGuidelines.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/CppCoreGuidelines.md b/CppCoreGuidelines.md index 9c7391d..2aed6e0 100644 --- a/CppCoreGuidelines.md +++ b/CppCoreGuidelines.md @@ -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.