using --- Flashcards

1
Q

relationship in which the object “is a” concrete example of the class

A

Is-a relationship

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q
  • ______ – an object of a class.
A

Instantiation

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q
  • The concept of a class is useful because of its ______
A

reusability

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

are data components of a class to help them distinguish from the other variables.

A

Data Fields

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q
  • _______ – nonstatic field so that each object instantiation has one copy.
A

Instance variable

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q
  • ______ – is the principle in creating private access.
  • an important component of Object-Oriented
    programs.
A

Information hiding

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q
  • Two types of instance method:
A

setters and getters

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
8
Q
  • Two types of instance method:
A
  1. Setters (mutator methods) – starts with the prefix ‘set’
  2. Getters (Access methods) – starts with the prefix ‘get’
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
9
Q
  • ______ - is a database term for unique identifier.
A

Primary Key

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

Two-step process in creating an object that is an instance of a class:

A
  1. Supply a type and identifier.
  2. Allocate computer memory for the object.
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
11
Q

_______ – establishes an object.
- it should be the same name as the class.

A

Constructor

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

– is created automatically by the java compiler for any class that has no its own constructor.

A

Default constructor

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