Demandbase interview question

how do you extended two classes in java