Deloitte interview question

OOPs concept in python programming