Johnson Controls interview question

Different types of inheritance and explain it with code?