IDEMIA interview question

Inheritance in java