class Base { public: virtual void f() {} }; class Derived : private Base { public: void f() override {} };
My question is, can this override be used? Private inheritance implies that you cannot store Derived in a Base pointer, and therefore you never need to dynamically send f to the correct type.
c ++ c ++ 11
mkmostafa
source share