method inheritance in order