Accenture Interview Question

Question on object oriented programing.