Infosys interview question

Mostly regarding OOP concepts in python