Johnson Controls Interview Question

Different types of inheritance and explain it with code?