3 ms·
The chief lesson here is parameterized modules - specifically, parameterizing modules by instantiating a class derived from Module, rather than simply including
by barrkel 11y ago
The chief lesson here is parameterized modules - specifically, parameterizing modules by instantiating a class derived from Module, rather than simply including the instance methods of a module directly.
I don't think this is an esoteric technique, any gripes about the specific examples chosen notwithstanding (probably chosen for their simplicity, not their utility). It's little different to inheriting from a template in C++.