What does inheritance do?

Beschreibung

Some notes on inheritance in Java
joannazhang13
Notiz von joannazhang13, aktualisiert more than 1 year ago
joannazhang13
Erstellt von joannazhang13 vor mehr als 9 Jahre
23
0

Zusammenfassung der Ressource

Seite 1

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

Zusammenfassung anzeigen Zusammenfassung ausblenden

ähnlicher Inhalt

DNA Basics
Sarah Juliette B
Java Week 5 Object Oriented Programming
Troy Bowlin
Let's see what you know
joannazhang13
Abstract Class Quiz
joannazhang13
Subclass Example
joannazhang13
Abstract Class Example
joannazhang13
Superclass Example 1
joannazhang13
Superclass Example 2
joannazhang13
AQA A2 Biology - Chapter 8 Inheritance and Selection
Charlotte Lloyd
Java Practice 1
Ummm No
Inheritance
alim586