X-Git-Url: https://git.distorted.org.uk/~mdw/sod/blobdiff_plain/b05636518b4e46caf9e6a689f11742c6a7a24c6b..756e9293611d2b1dc34fba6cca89fd70098f5546:/doc/intro.tex diff --git a/doc/intro.tex b/doc/intro.tex index f4b3168..f77eed0 100644 --- a/doc/intro.tex +++ b/doc/intro.tex @@ -88,7 +88,7 @@ are subclasses; \Cplusplus\ has no such root class. Both systems provide multiple inheritance, but go about it very differently. The most important difference is that \Cplusplus\ provides only \emph{static delegation}: if you have a class @|B| which defines some (virtual) member -function @|f|, and a derived class of @|D| which wants to \emph{extend} the +function @|f|, and a derived class @|D| which wants to \emph{extend} the behaviour of @|f| on instances of @|D|, then you must explicitly call @|B::f| at the appropriate point: \begin{prog}