Qualcomm interview question

other general questions about object oriented programming and inheritance