Tech Mahindra Interview Question

Q7. What do you mean by inheritance?