From 624b606af44199c854d3f3910d2fb6b13db4cabe Mon Sep 17 00:00:00 2001 From: Stephan Hageboeck Date: Wed, 15 Oct 2025 16:11:56 +0200 Subject: [PATCH] Refine two statements in advancedOO. Thanks for pointing this out to @Ban42. Fix #562. --- talk/objectorientation/advancedoo.tex | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/talk/objectorientation/advancedoo.tex b/talk/objectorientation/advancedoo.tex index 420fcd59..52a4440b 100644 --- a/talk/objectorientation/advancedoo.tex +++ b/talk/objectorientation/advancedoo.tex @@ -245,7 +245,7 @@ \begin{block}{Principle} \begin{itemize} \item when overriding a virtual method, the \cppinline|override| keyword should be used - \item the \cppinline|virtual| keyword is then optional + \item the \cppinline|virtual| keyword is then optional in derived classes \end{itemize} \end{block} \begin{exampleblock}{Practically} @@ -275,7 +275,7 @@ \end{block} \begin{itemize} \item with \cppinline|override|, you would get a compiler error - \item if you forget \cppinline|override| when you should have it, you get a compiler warning + \item if you forget \cppinline|override| when you should have it, you may get a compiler warning \end{itemize} \end{frame}