Chapter 11 Flashcards

You may prefer our related Brainscape-certified flashcards:
1
Q

abstract class

A

A class that defines attributes and methods for subclasses but is never instantiated. (384)

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

abstract method

A

A method that is specified but not implemented in an abstract class. The subclasses must implement this method. (406)

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

aggregation

A

A relationship between two classes in which instances of one class are contained in an instance of the other class. (414)

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

aliasing

A

When more than one variable points to the same object. (427)

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

class (static) method

A

A method that is invoked when a message is sent to a class. For example, Math.sqrt is a class method. (384)

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

class (static) variable

A

A variable that is visible to all instances of a class and, if public, is accessed by specifying the class name. (384)

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

concrete class

A

A class that can be instantiated. (406)

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

dependency

A

A relationship between two classes in which an instance of one class uses an instance of the other class to perform a task. (414)

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

final method

A

A method that cannot be overridden by a subclass. (407)

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

inheritance

A

The process by which a subclass can reuse attributes and behavior defined in a superclass. (384)

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

interface

A

A Java file that simply specifies the methods to be implemented by another class. A class that implements several interfaces can thus adopt the behavior of several classes. (391)

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

overriding

A

The process of re-implementing a method already implemented in a superclass. (413)

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

postcondition

A

A statement of what is true after a certain action is taken. (418)

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

precondition

A

A statement of what is true before a certain action is taken. (418)

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