[Cs3] Templated Design Pattern
Mikhail Nesterenko
mikhail at cs.kent.edu
Mon Apr 25 22:34:29 EDT 2022
>
> I have a quick question: Does the templated method only use primitive
> operations, or does it also use hook operations.
primitive operations: implemented in C++ as pure virtual functions, do
not provide default implementation and must be overridden by the
derived class
hooks: provide a derfault implementation and _may_ be override by the
derived class if different behavior is desired.
>
> Also primitive operations are just virtual functions, whereas hook
> operations are pure virtual is that correct?
Thanks,
--
Mikhail
More information about the cs3
mailing list