Accenture Interview Question

Question on the OOPS concept