Karteikarten
OOP - Inheritence
Karten in diesem Stapel (8)
- 1Inheritance It is a form of software _____reuse
- 2Inheritance What is it?A class absorbing an existing class's members and adapting them with new or modified capabilities
- 3In Java, can classes inherit multiple classes? What is this called?No
Single-class inheritence - 4Is inheritance an "is a" or a "has a" scenario?is a
- 5By contrast, "has-a" represents _____composition
- 6What is composition?An object contains references to other objects
e.g. car has a steering wheel - 7Composition In a nutshell...objects or elements which help to COMPOSE details about another class
has-a relationship - 8Inheritance Advantages- Minimizes duplicate code
- Easier to maintain
- Reduces development time
- Code better organized
- More robust
- Flexible to change
Informationen
- Beschreibung
- Masters Programming I Karteikarten am OOP - Inheritence, erstellt von nhunsdale02 am 06/06/2014.
- Erstellt von
- nhunsdale02
- Aufrufe
- 20
- Bewertung