PEOL interview question

OOPS concept Some queries