in reply to Re^2: Inherit only few methods from a parent class
in thread Inherit only few methods from a parent class

This is exactly why you should have followed the advice given to you by lostjimmy in Re: Inherit only few methods from a parent class. If a child class is not a drop in replacement for its parent, then you should not be using inheritance, but use composition (also called delegation) instead.

See also Liskov substitution principle, Class::Delegation::Simple

  • Comment on Re^3: Inherit only few methods from a parent class