Programming Logic and Design
Chapter 10 Review AND Vocabulary
Correct Answers
class diagram - ANSWER-A tool for describing a class that consists of a rectangle
divided into three sections that show the name, data, and methods of a class
set method - ANSWER-An instance method that sets the values of a data field within
a class
mutator method - ANSWER-An instance method that can modify an object's
attributes
property - ANSWER-A property provides methods that allow you to get and set a
class field value using a simple syntax
get method - ANSWER-An instance method that returns a value from a class
accessor method - ANSWER-A method that gets values from class fields
work method - ANSWER-A method that performs tasks within a class
help method or facilitator method - ANSWER-A work method
private access - ANSWER-A privilege of class members in which data or methods
cannot be used by any method that is not part of the same class
public access - ANSWER-A privilege of class members in which other programs and
methods may use the specified data or methods within a class
access specifier - ANSWER-The adjective that defines the type of access outside
classes will have to the attribute or method
instance method - ANSWER-A method that operates correctly yet differently for each
class object
an instance method is nonstatic and receives a 𝚝𝚑𝚒𝚜 reference - ANSWER-
this reference - ANSWER-An automatically created variable that holds the address
of an object and passes it to an instance method whenever the method is called
Static methods - ANSWER-Methods for which no object needs to exist
static methods are not instance methods and they do not receive a 𝚝𝚑𝚒𝚜 reference -
ANSWER-
, class methods - ANSWER-A static method
class methods are not instance methods and they do not receive a this reference -
ANSWER-
Nonstatic methods - ANSWER-Methods that exist to be used with an object
they are instance methods and they receive a 𝚝𝚑𝚒𝚜 reference - ANSWER-
Which of the following means the sames as object?
a. class
b. instance
c. field
d. category - ANSWER-a. class
Which of the following means the same as instance variable?
a. class
b. instance
c. category
d. field - ANSWER-d. field
A program that instantiates objects of another prewritten class is a(n)__________.
a. client
b. object
c. instance
d. GUI - ANSWER-b. object
The relationship between an instance and a class is a(n) ________ relationship
a. has-a
b. is-a
c. polymorphic
d. hostile - ANSWER-b. is-a
Which of these does not belong with the others?
a. instance variable
b. attribute
c. field
d. object - ANSWER-d. object
The process of acquiring the traits of one's predecessors' is ____________
a. polymorphism
b. encapsulation
c. inheritance
Chapter 10 Review AND Vocabulary
Correct Answers
class diagram - ANSWER-A tool for describing a class that consists of a rectangle
divided into three sections that show the name, data, and methods of a class
set method - ANSWER-An instance method that sets the values of a data field within
a class
mutator method - ANSWER-An instance method that can modify an object's
attributes
property - ANSWER-A property provides methods that allow you to get and set a
class field value using a simple syntax
get method - ANSWER-An instance method that returns a value from a class
accessor method - ANSWER-A method that gets values from class fields
work method - ANSWER-A method that performs tasks within a class
help method or facilitator method - ANSWER-A work method
private access - ANSWER-A privilege of class members in which data or methods
cannot be used by any method that is not part of the same class
public access - ANSWER-A privilege of class members in which other programs and
methods may use the specified data or methods within a class
access specifier - ANSWER-The adjective that defines the type of access outside
classes will have to the attribute or method
instance method - ANSWER-A method that operates correctly yet differently for each
class object
an instance method is nonstatic and receives a 𝚝𝚑𝚒𝚜 reference - ANSWER-
this reference - ANSWER-An automatically created variable that holds the address
of an object and passes it to an instance method whenever the method is called
Static methods - ANSWER-Methods for which no object needs to exist
static methods are not instance methods and they do not receive a 𝚝𝚑𝚒𝚜 reference -
ANSWER-
, class methods - ANSWER-A static method
class methods are not instance methods and they do not receive a this reference -
ANSWER-
Nonstatic methods - ANSWER-Methods that exist to be used with an object
they are instance methods and they receive a 𝚝𝚑𝚒𝚜 reference - ANSWER-
Which of the following means the sames as object?
a. class
b. instance
c. field
d. category - ANSWER-a. class
Which of the following means the same as instance variable?
a. class
b. instance
c. category
d. field - ANSWER-d. field
A program that instantiates objects of another prewritten class is a(n)__________.
a. client
b. object
c. instance
d. GUI - ANSWER-b. object
The relationship between an instance and a class is a(n) ________ relationship
a. has-a
b. is-a
c. polymorphic
d. hostile - ANSWER-b. is-a
Which of these does not belong with the others?
a. instance variable
b. attribute
c. field
d. object - ANSWER-d. object
The process of acquiring the traits of one's predecessors' is ____________
a. polymorphism
b. encapsulation
c. inheritance