APSU CSCI 2010 FINAL EXAM
Object - ANSWER an instance of a class that are created to use the attributes and
methods of a class
Class - ANSWER Blueprints of an object
UML class diagram - ANSWER describes the structure of a class by displaying the class
name (first row), variables (second row), and methods (third row).
Instance variable - ANSWER a variable defined in a class for which every object of the
class has its own value
Method - ANSWER A block of code that, when called, performs specific actions
mentioned in it
The null constant - ANSWER indicates the null value / has no data type
Void Method - ANSWER Method that does not return a value
Method header - ANSWER Public / void/ writeOutput / ()
Method Body - ANSWER a sequence of statements to execute when the method is
called, and must be surrounded by { and }
this - ANSWER refers to the object that is performing the action specified by the method
Local Variable - ANSWER temporary variable that exist only in a particular function o
, block of statements
Parameter - ANSWER Information that is passed to a method / act as variables inside the
method
Accessor method / Getter - ANSWER Allows access to private variables not inside the
class
Mutator method / Setter - ANSWER Allows changing of a private variable not inside the
class
Information hiding - ANSWER a programmer using a method needs to knowwhat the
method does, not how it does it
Precondition comment - ANSWER states the conditions that must be true before the
method is called.
Postcondition comment - ANSWER describes all of the effects produced by a method
call
Encapsulation - ANSWER the details of a class are hidden if they are notnecessary to
understand how objects of the class are used.
Class interface - ANSWER consists of the headers of the public methods and anypublic
named constants in the class
Implementation - ANSWER consists of the instance variables and method definitions in
the class.
Constructor - ANSWER special method that is called whenever the new keyword is used
/ initializes private instance variables
Object - ANSWER an instance of a class that are created to use the attributes and
methods of a class
Class - ANSWER Blueprints of an object
UML class diagram - ANSWER describes the structure of a class by displaying the class
name (first row), variables (second row), and methods (third row).
Instance variable - ANSWER a variable defined in a class for which every object of the
class has its own value
Method - ANSWER A block of code that, when called, performs specific actions
mentioned in it
The null constant - ANSWER indicates the null value / has no data type
Void Method - ANSWER Method that does not return a value
Method header - ANSWER Public / void/ writeOutput / ()
Method Body - ANSWER a sequence of statements to execute when the method is
called, and must be surrounded by { and }
this - ANSWER refers to the object that is performing the action specified by the method
Local Variable - ANSWER temporary variable that exist only in a particular function o
, block of statements
Parameter - ANSWER Information that is passed to a method / act as variables inside the
method
Accessor method / Getter - ANSWER Allows access to private variables not inside the
class
Mutator method / Setter - ANSWER Allows changing of a private variable not inside the
class
Information hiding - ANSWER a programmer using a method needs to knowwhat the
method does, not how it does it
Precondition comment - ANSWER states the conditions that must be true before the
method is called.
Postcondition comment - ANSWER describes all of the effects produced by a method
call
Encapsulation - ANSWER the details of a class are hidden if they are notnecessary to
understand how objects of the class are used.
Class interface - ANSWER consists of the headers of the public methods and anypublic
named constants in the class
Implementation - ANSWER consists of the instance variables and method definitions in
the class.
Constructor - ANSWER special method that is called whenever the new keyword is used
/ initializes private instance variables