Object-Oriented Class Design Flashcards

1
Q

Keywords in object-oriented languages that set the accessibility of classes, methods, and other members. The two most common are private and public, where private limits access only to members of the class, and public grants open access.

A

Access Modifier

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

Method in Java that allows and controls access to private data of objects.

A

Accessor Method

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

A process in class definition that acts on the data that belongs to that class.

A

Class Method

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

A variable that belongs to the class, and is not specific to any particular object, indicated by the word “static,” of which only a single copy exists, regardless of how many instances of the class exist.

A

Class Variable

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

The process of instantiating (bringing into existence) an object based on a class definition.

A

Construct

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

A method in a class definition whose sole responsibility is to construct a new object. Classes have many versions of these, a key feature of polymorphism.

A

Constructor

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

For variables in a class, this is a value that is automatically assigned, like zero for numeric variables, null for objects, false for Boolean.

A

Default

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

This is the constructor either supplied by the compiler where all instance variables received default values, or one defined explicitly in the class that receives no parameters and assigns beginning values for each instance variable.

A

Default Constructor

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

In a programming project, this is the class that contains the method where program execution begins, such as the main method in Java.

A

Driver Class

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

A member of its enclosing class. Non-state inner classes have access to other members of the enclosing class, even if they are declared private.

A

Nested Class

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

The Java reserved word that instantiates an object.

A

New

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

The name of the Java class that is the “mother” of all objects. All other Java class automatically inherit this class at the top-level parent class in the hierarchy. This class provides basic methods such as the toString, hasCode, and equals methods.

A

Object Class

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

This is the super class in a class hierarchy inheritance system. In Java, the Object class is the ultimate version of this class.

A

Parent Class

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

Methods that belong to the String class that act on the string, such as length(), substring(), indexOf(), charAt(), etc.

A

String Methods

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

An object in programming that references a String.

A

String Object

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

A class whose definition inherits the characteristics of another class, called the parent class or super class.

A

Subclass.

17
Q

The reserved word in programming that designates a method or data item that belongs to the parent class, or super class.

A

Super

18
Q

The class whose characteristics are inherited by another class that inherits it, called the sub class.

A

Superclass