Programming Logic and Design
Chapter 7 Key Terms Questions and
Answers
user defined type - ANSWER-a type that is not built into a language but is created by
a programmer
abstract data type - ANSWER-a programmer defined type such as a class
primitive data type - ANSWER-simple numbers and characters that are not class
types
class diagram - ANSWER-consists of a rectangle divided into 3 sections that show
the name data and methods of a class
set method - ANSWER-instance method that sets the values of a data field within a
class
mutater methods - ANSWER-instance methods that can modify an object's attributes
get method - ANSWER-instance method that returns a value from a class
accessor methods - ANSWER-instance methods that get values from class fields
work methods - ANSWER-perform tasks within a class
help methods - ANSWER-other name for a work method
private access - ANSWER-specifies method data or method can not be used by any
method that is not part of the same class
public access - ANSWER-specifies that other programs and methods may use the
specified data or methods
access specifier - ANSWER-the adjective that defines the type of access outside
classes will have to the attribute or method
instance method - ANSWER-operates correctly yet differently form each class object
it is nonstatic and receives a this reference
this reference - ANSWER-automatically created variable that hold the address of an
object and passes it to an instance method whenever the method is called
Chapter 7 Key Terms Questions and
Answers
user defined type - ANSWER-a type that is not built into a language but is created by
a programmer
abstract data type - ANSWER-a programmer defined type such as a class
primitive data type - ANSWER-simple numbers and characters that are not class
types
class diagram - ANSWER-consists of a rectangle divided into 3 sections that show
the name data and methods of a class
set method - ANSWER-instance method that sets the values of a data field within a
class
mutater methods - ANSWER-instance methods that can modify an object's attributes
get method - ANSWER-instance method that returns a value from a class
accessor methods - ANSWER-instance methods that get values from class fields
work methods - ANSWER-perform tasks within a class
help methods - ANSWER-other name for a work method
private access - ANSWER-specifies method data or method can not be used by any
method that is not part of the same class
public access - ANSWER-specifies that other programs and methods may use the
specified data or methods
access specifier - ANSWER-the adjective that defines the type of access outside
classes will have to the attribute or method
instance method - ANSWER-operates correctly yet differently form each class object
it is nonstatic and receives a this reference
this reference - ANSWER-automatically created variable that hold the address of an
object and passes it to an instance method whenever the method is called