Chapter 18 Flashcards

1
Q

encode

A

to represent one set of values using another set of values by constructing a mapping between them.

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

class attribute

A

an attribute associated with a class object. class attributes are defined inside a class definition but outside any method.

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

instance attribute

A

an attribute associated with an instance of a class

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

veneer

A

a method or function that provides a different interface to another function without doing much computation.

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

inheritance

A

the ability to define a new class that is a modified version of a previously defined class.

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

parent class

A

the class from which a child class inherits.

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

child class

A

a new class created by inheriting from an existing class; also called a “sub-class”.

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

IS-A relationship

A

the relationship between a child class and its parent class.

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

HAS-A relationship

A

the relationship between two classes where instances of one class contain references to instances of the other.

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

class diagram

A

a diagram that shows the classes in a program and the relationships between them.

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

multiplicity

A

a notation in a class diagram that shows, for a HAS-A relationship, how many references there are to instances of another class.

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