Accenture interview question

Question on object oriented programing.