Johnson Controls Interview Question

what is inheritance and its tyes