Produce a sentence which has a cefr level of "c1" that contains the following words: inheritance, class, superclass.
Hierarchical inheritance is when a class is both a subclass and a superclass in the same model, whereas multiple inheritance is when a single class can have more than one superclass.