Accenture interview question

about oops and its extension and types