Deck 10: Classes and Data Abstraction

Full screen (f)
exit full mode
Question
What are the two built-in operations that are valid for class objects?
Use Space or
up arrow
down arrow
to flip the card.
Question
By default, all members of a class are ____________________ (public/private).
Question
In the definition of a class, you initialize the variable when you declare it.
Question
If a member of a class is a function, it can directly access any member of the class - member variables and member functions.
Question
What is meant by an automatic class object?
Question
Classes can be passed as parameters to functions either by value or by reference.
Question
In a function definition's heading, the name of the function is the name of the class, followed by the ___________________, followed by the function name.
Question
What is an accessor function?
Question
Separating the design details of what an object does from its implementation is called ____________________.
Question
The set of values belonging to an ADT is called a(n) ____________________.
Question
A(n) ____________________ file contains the specification details of a class.
Question
The implementation file of a class contains the function main.
Question
What does these terms refer to:

- \gg Abstract data type (ADT):
Question
What does these terms refer to:

- \gg Abstraction:
Question
What does these terms refer to:

- \gg Accessor function:
Question
What does these terms refer to:

- \gg Build, rebuild, or make:
Question
What does these terms refer to:

- \gg Class:
Question
What does these terms refer to:

- \gg Class object (class instance, object):
Question
What does these terms refer to:

- \gg Client:
Question
What does these terms refer to:

- \gg Constant function:
Question
What does these terms refer to:

- \gg Default constructor:
Question
What does these terms refer to:

- \gg Domain:
Question
What does these terms refer to:

- \gg Header file (interface file):
Question
What does these terms refer to:

- \gg Implementation file:
Question
What does these terms refer to:

- \gg Information hiding:
Question
What does these terms refer to:

- \gg Inline function definition:
Question
What does these terms refer to:

- \gg Instance variables:
Question
What does these terms refer to:

- \gg Member access operator:
Question
What does these terms refer to:

- \gg Members:
Question
What does these terms refer to:

- \gg Mutator function:
Question
What does these terms refer to:

- \gg Object-oriented design (OOD):
Question
What does these terms refer to:

- \gg Objects:
Question
What does these terms refer to:

- \gg Operations:
Question
What does these terms refer to:

- \gg Postcondition:
Question
What does these terms refer to:

- \gg Precondition:
Question
What does these terms refer to:

- \gg Scope resolution operator (::):
Question
What does these terms refer to:

- \gg Type name:
Question
What does these terms refer to:

- \gg Unified Modeling Language (UML):
Unlock Deck
Sign up to unlock the cards in this deck!
Unlock Deck
Unlock Deck
1/38
auto play flashcards
Play
simple tutorial
Full screen (f)
exit full mode
Deck 10: Classes and Data Abstraction
1
What are the two built-in operations that are valid for class objects?
assignment (=) and member access (.)
2
By default, all members of a class are ____________________ (public/private).
private
3
In the definition of a class, you initialize the variable when you declare it.
False
4
If a member of a class is a function, it can directly access any member of the class - member variables and member functions.
Unlock Deck
Unlock for access to all 38 flashcards in this deck.
Unlock Deck
k this deck
5
What is meant by an automatic class object?
Unlock Deck
Unlock for access to all 38 flashcards in this deck.
Unlock Deck
k this deck
6
Classes can be passed as parameters to functions either by value or by reference.
Unlock Deck
Unlock for access to all 38 flashcards in this deck.
Unlock Deck
k this deck
7
In a function definition's heading, the name of the function is the name of the class, followed by the ___________________, followed by the function name.
Unlock Deck
Unlock for access to all 38 flashcards in this deck.
Unlock Deck
k this deck
8
What is an accessor function?
Unlock Deck
Unlock for access to all 38 flashcards in this deck.
Unlock Deck
k this deck
9
Separating the design details of what an object does from its implementation is called ____________________.
Unlock Deck
Unlock for access to all 38 flashcards in this deck.
Unlock Deck
k this deck
10
The set of values belonging to an ADT is called a(n) ____________________.
Unlock Deck
Unlock for access to all 38 flashcards in this deck.
Unlock Deck
k this deck
11
A(n) ____________________ file contains the specification details of a class.
Unlock Deck
Unlock for access to all 38 flashcards in this deck.
Unlock Deck
k this deck
12
The implementation file of a class contains the function main.
Unlock Deck
Unlock for access to all 38 flashcards in this deck.
Unlock Deck
k this deck
13
What does these terms refer to:

- \gg Abstract data type (ADT):
Unlock Deck
Unlock for access to all 38 flashcards in this deck.
Unlock Deck
k this deck
14
What does these terms refer to:

- \gg Abstraction:
Unlock Deck
Unlock for access to all 38 flashcards in this deck.
Unlock Deck
k this deck
15
What does these terms refer to:

- \gg Accessor function:
Unlock Deck
Unlock for access to all 38 flashcards in this deck.
Unlock Deck
k this deck
16
What does these terms refer to:

- \gg Build, rebuild, or make:
Unlock Deck
Unlock for access to all 38 flashcards in this deck.
Unlock Deck
k this deck
17
What does these terms refer to:

- \gg Class:
Unlock Deck
Unlock for access to all 38 flashcards in this deck.
Unlock Deck
k this deck
18
What does these terms refer to:

- \gg Class object (class instance, object):
Unlock Deck
Unlock for access to all 38 flashcards in this deck.
Unlock Deck
k this deck
19
What does these terms refer to:

- \gg Client:
Unlock Deck
Unlock for access to all 38 flashcards in this deck.
Unlock Deck
k this deck
20
What does these terms refer to:

- \gg Constant function:
Unlock Deck
Unlock for access to all 38 flashcards in this deck.
Unlock Deck
k this deck
21
What does these terms refer to:

- \gg Default constructor:
Unlock Deck
Unlock for access to all 38 flashcards in this deck.
Unlock Deck
k this deck
22
What does these terms refer to:

- \gg Domain:
Unlock Deck
Unlock for access to all 38 flashcards in this deck.
Unlock Deck
k this deck
23
What does these terms refer to:

- \gg Header file (interface file):
Unlock Deck
Unlock for access to all 38 flashcards in this deck.
Unlock Deck
k this deck
24
What does these terms refer to:

- \gg Implementation file:
Unlock Deck
Unlock for access to all 38 flashcards in this deck.
Unlock Deck
k this deck
25
What does these terms refer to:

- \gg Information hiding:
Unlock Deck
Unlock for access to all 38 flashcards in this deck.
Unlock Deck
k this deck
26
What does these terms refer to:

- \gg Inline function definition:
Unlock Deck
Unlock for access to all 38 flashcards in this deck.
Unlock Deck
k this deck
27
What does these terms refer to:

- \gg Instance variables:
Unlock Deck
Unlock for access to all 38 flashcards in this deck.
Unlock Deck
k this deck
28
What does these terms refer to:

- \gg Member access operator:
Unlock Deck
Unlock for access to all 38 flashcards in this deck.
Unlock Deck
k this deck
29
What does these terms refer to:

- \gg Members:
Unlock Deck
Unlock for access to all 38 flashcards in this deck.
Unlock Deck
k this deck
30
What does these terms refer to:

- \gg Mutator function:
Unlock Deck
Unlock for access to all 38 flashcards in this deck.
Unlock Deck
k this deck
31
What does these terms refer to:

- \gg Object-oriented design (OOD):
Unlock Deck
Unlock for access to all 38 flashcards in this deck.
Unlock Deck
k this deck
32
What does these terms refer to:

- \gg Objects:
Unlock Deck
Unlock for access to all 38 flashcards in this deck.
Unlock Deck
k this deck
33
What does these terms refer to:

- \gg Operations:
Unlock Deck
Unlock for access to all 38 flashcards in this deck.
Unlock Deck
k this deck
34
What does these terms refer to:

- \gg Postcondition:
Unlock Deck
Unlock for access to all 38 flashcards in this deck.
Unlock Deck
k this deck
35
What does these terms refer to:

- \gg Precondition:
Unlock Deck
Unlock for access to all 38 flashcards in this deck.
Unlock Deck
k this deck
36
What does these terms refer to:

- \gg Scope resolution operator (::):
Unlock Deck
Unlock for access to all 38 flashcards in this deck.
Unlock Deck
k this deck
37
What does these terms refer to:

- \gg Type name:
Unlock Deck
Unlock for access to all 38 flashcards in this deck.
Unlock Deck
k this deck
38
What does these terms refer to:

- \gg Unified Modeling Language (UML):
Unlock Deck
Unlock for access to all 38 flashcards in this deck.
Unlock Deck
k this deck
locked card icon
Unlock Deck
Unlock for access to all 38 flashcards in this deck.