CSCI 2010 APSU Final
Study online at https://quizlet.com/_hq8iru
1. Object: an instance of a class that are created to use the attributes and methods of a class
2. Class: Blueprints of an object
3. UML class diagram: describes the structure of a class by displaying the class name (first row), variables
(second row), and methods (third row).
4. Instance variable: a variable defined in a class for which every object of the class has its own value
5. Method: A block of code that, when called, performs specific actions mentioned in it
6. The null constant: indicates the null value / has no data type
7. Void Method: Method that does not return a value
8. Method header: Public / void/ writeOutput / ()
9. Method Body: a sequence of statements to execute when the method is called, and must be surrounded by
{ and }
10. this: refers to the object that is performing the action specified by the method
11. Local Variable: temporary variable that exist only in a particular function o block of statements
12. Parameter: Information that is passed to a method / act as variables inside the method
13. Accessor method / Getter: Allows access to private variables not inside the class
14. Mutator method / Setter: Allows changing of a private variable not inside the class
15. Information hiding: a programmer using a method needs to knowwhat the method does, not how it does
it
16. Precondition comment: states the conditions that must be true before the method is called.
17. Postcondition comment: describes all of the effects produced by a method call
18. Encapsulation: the details of a class are hidden if they are notnecessary to understand how objects of the
class are used.
19. Class interface: consists of the headers of the public methods and anypublic named constants in the class
20. Implementation: consists of the instance variables and method definitions in the class.
21. Constructor: special method that is called whenever the new keyword is used / initializes private instance
variables
22. Default contructor: takes no arguments
23. Multi Constructor: Allowed if each constructor has different parameters
24. Static variable: shared by all objects of a class
25. Static Method: can be invoked without creating an object
26. Subtask: Using static methods to divide the main methods
27. Wrapper classes: Primitive type
1/3
Study online at https://quizlet.com/_hq8iru
1. Object: an instance of a class that are created to use the attributes and methods of a class
2. Class: Blueprints of an object
3. UML class diagram: describes the structure of a class by displaying the class name (first row), variables
(second row), and methods (third row).
4. Instance variable: a variable defined in a class for which every object of the class has its own value
5. Method: A block of code that, when called, performs specific actions mentioned in it
6. The null constant: indicates the null value / has no data type
7. Void Method: Method that does not return a value
8. Method header: Public / void/ writeOutput / ()
9. Method Body: a sequence of statements to execute when the method is called, and must be surrounded by
{ and }
10. this: refers to the object that is performing the action specified by the method
11. Local Variable: temporary variable that exist only in a particular function o block of statements
12. Parameter: Information that is passed to a method / act as variables inside the method
13. Accessor method / Getter: Allows access to private variables not inside the class
14. Mutator method / Setter: Allows changing of a private variable not inside the class
15. Information hiding: a programmer using a method needs to knowwhat the method does, not how it does
it
16. Precondition comment: states the conditions that must be true before the method is called.
17. Postcondition comment: describes all of the effects produced by a method call
18. Encapsulation: the details of a class are hidden if they are notnecessary to understand how objects of the
class are used.
19. Class interface: consists of the headers of the public methods and anypublic named constants in the class
20. Implementation: consists of the instance variables and method definitions in the class.
21. Constructor: special method that is called whenever the new keyword is used / initializes private instance
variables
22. Default contructor: takes no arguments
23. Multi Constructor: Allowed if each constructor has different parameters
24. Static variable: shared by all objects of a class
25. Static Method: can be invoked without creating an object
26. Subtask: Using static methods to divide the main methods
27. Wrapper classes: Primitive type
1/3