DMi interview question

Explain all oops concept