Chapter 11 Flashcards

1
Q

actual type

A

The actual type of the variable is the actual class for the object referenced by the variable.

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

casting objects

A

Converting an object of one object type into another object type. The contents of the object are not changed.

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

constructor chaining

A

Constructing an instance of a class invokes all the constructor chaining superclasses along the inheritance chain.

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

declared type

A

A data type that is used to declare a reference variable. This type is called the declared type for the variable.

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

dynamic binding

A

A method may be defined in a superclass, but is overridden in a subclass. Which implementation of the method is used on a particular call will be determined dynamically at runtime. This capability is known as dynamic binding.

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

inheritance/is-a relationship

A

Defining a new class by extending an existing class

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

instanceof

A

An operator that checks whether an object is an instance of a class.

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

method overriding/override

A

Implement the method in a subclass that is declared in a superclass.

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

multiple inheritance

A

Means that a class can extend multiple superclasses.

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

polymorphism

A

Refers to the feature that an object of a subclass can be used by any code designed to work with an object of its superclass.

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

protected

A

A modifier for members of a class. A protected member of a class can be used in the class in which it is declared or any subclass derived from that class.

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

single inheritance

A

Means that a class can only extend one superclass.

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

sublcass/subtype

A

(Child class or derived class) A class that inherits from or extends a superclass.

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

superclass/supertype

A

(parent class or extended class) A class inherited from a subclass.

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

type inference

A

The concrete type is no longer required in the constructor thanks to a feature called type inference.

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