Question d’entretien chez Johnson Controls

Different types of inheritance and explain it with code?