Heritable class with protected methods