PwC interview question

Java inheritance related questions.