static control flow in parent to child classes