using --- Flashcards
1
Q
relationship in which the object “is a” concrete example of the class
A
Is-a relationship
2
Q
- ______ – an object of a class.
A
Instantiation
3
Q
- The concept of a class is useful because of its ______
A
reusability
4
Q
are data components of a class to help them distinguish from the other variables.
A
Data Fields
5
Q
- _______ – nonstatic field so that each object instantiation has one copy.
A
Instance variable
6
Q
- ______ – is the principle in creating private access.
- an important component of Object-Oriented
programs.
A
Information hiding
7
Q
- Two types of instance method:
A
setters and getters
8
Q
- Two types of instance method:
A
- Setters (mutator methods) – starts with the prefix ‘set’
- Getters (Access methods) – starts with the prefix ‘get’
9
Q
- ______ - is a database term for unique identifier.
A
Primary Key
10
Q
Two-step process in creating an object that is an instance of a class:
A
- Supply a type and identifier.
- Allocate computer memory for the object.
11
Q
_______ – establishes an object.
- it should be the same name as the class.
A
Constructor
12
Q
– is created automatically by the java compiler for any class that has no its own constructor.
A
Default constructor