Thales interview question

Given a Java code with multiple classes with inheritance relationships, I had to explain what functions get called (from parent class or child) in different situations.