Try virtual functions and overriding them.