DMi Interview Question

Explain all oops concept