Flashcards
OOP - Inheritence
Cards in this deck (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
Information
- Description
- Masters Programming I Flashcards on OOP - Inheritence, created by nhunsdale02 on 06/06/2014.
- Created by
- nhunsdale02
- Views
- 20
- Rating