Domanda di colloquio di Johnson Controls

Different types of inheritance and explain it with code?