M
Marcin Kalicinski
Hi,
Because public inheritance should be used to model is-a relationship, is it
evil from a design point of view to disallow some operations from base
class?
class Derived: public Base
{
/* ... */
private:
using Base::SomeOperation; // Disallow
}
Best regards,
Marcin
Because public inheritance should be used to model is-a relationship, is it
evil from a design point of view to disallow some operations from base
class?
class Derived: public Base
{
/* ... */
private:
using Base::SomeOperation; // Disallow
}
Best regards,
Marcin