A few years ago I used interfaces like this:
class Base { public: virtual ~Base { } void foo() { doFoo(); } private: virtual void doFoo() = 0; };
then the output would be:
class Derived : public Base { public: virtual ~Derived() { } private: virtual void doFoo() { } };
I am sure that I saw this as a design template somewhere, but now I can not find it anywhere and I can not remember what it is called.
So what is the name of this design template?
BΠoviΡ
source share