Chapter 9: Inheritance Flashcards

1
Q

inheritance

A

The is-a relationship between a more general superclass and a more specialized subclass.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

superclass

A

A general class from which a more specialized class (a subclass) inherits.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

subclass

A

A class that inherits variables and methods from a superclass but may also add instance variables, add methods, or redefine methods.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

override

A

Redefining a method in a subclass.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

dynamic method lookup

A

Selecting a method to be invoked at run time. In Java, dynamic method lookup considers the class of the implicit parameter object to select the appropriate method.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

polymorphism

A

Selecting a method among several methods that have the same name on the basis of the actual types of the implicit parameters.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

abstract class

A

A class that cannot be instantiated.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
8
Q

concrete class

A

A class that can be instantiated.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly