Chapter 7 Questions Flashcards

(13 cards)

0
Q

The usual syntax for using a class method is to provide a(n) __________ name, a dot (period), and a method name.

A

Object

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

A(n) _______________ is one concrete example of a class.

A

Object

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

A(n) ______ is a term that describes a group of objects with common properties.

A

Class

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

_______________ encapsulate data and methods.

A

Classes

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

A(n) ____ is just an abstract description of what an object will be like if any objects are ever actually instantiated.

A

Class

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

The feature of languages that allows the same word or symbol to be interpreted correctly in different situations based on the context is _______________.

A

Polymorphism

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

Polymorphism, which means “many forms,” describes a language’s ability to process objects differently depending on each object’s data _______________.

A

Type

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

A(n) ___________ of a class is an existing object of a class.

A

Instance

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

Each data variable that exists for every object is called a(n) ___________ variable.

A

Instance

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

With object-oriented languages, you think of the class name, data, and methods as a single ________ unit.

A

Encapsulated

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

By returning a(n) _ Employee object, you get to return several pieces of data in 1 package.

A

Encapsulated

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

A method that changes values within an abject is called a(n) _______________ method.

A

Mutator

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

Object-oriented programmers usually specify that their data fields will have _______ access—that is, the data cannot be accessed by any method that is not part of the class.

A

Private

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