Accenture Interview Question

basic oops concept they ask