|
Creado por joannazhang13
hace alrededor de 10 años
|
|
Inheritance allows subclasses to be created from superclasses. The subclass then "absorbs" the behaviors of the superclass It allows code to be reused without retyping it in the subclass, which saves a lot of space and time. An inheritance hierarchy is formed when a subclass becomes a superclass of another subclass, forming a pyramid. The subclass and superclass has an is-a relationship, in which the subclass is-a superclass. The is-a relationship is also transitive
There are no comments, be the first and leave one below:
¿Quieres crear tus propios Apuntes gratis con GoConqr? Más información.