Neha Mehra interview question

what is inheritance and its types