Capgemini Engineering interview question

Explain Inheritance and explain the types of inheritance