Pregunta de entrevista de Johnson Controls

Different types of inheritance and explain it with code?