AP CSA Chapter 4 Flashcards
Terms : Hide Images [1]
8688256781 | private variables | variable or procedure declared with the private keyword; available only inside the current class | 0 | |
8688256782 | public variables | are visibility modifiers that can be applied to the variables and methods of a class | 1 | |
8688256783 | final int | Integers that can't be changed. These values help us keep a program encapsulated. | 2 | |
8688256784 | Method's Signature | a method's signature is the method's name along with the number, type and order of its parameters | 3 | |
8688256785 | Method Overloading | using the same method name with different parameter lists for several methods | 4 | |
8688256786 | Mutator Method | allows changes to be made in a particular value (setX) | 5 | |
8688256787 | Accessor Method | provides read-only access to a particular value (getX) | 6 | |
8688256788 | Local Data | variable declared inside a method and cannot be used outside of the method | 7 | |
8688256789 | Constructor | used to initialize the newly instantiated object, cannot have any return type even void | 8 | |
8688256790 | Assertion | is a logical statement that can be true or false and represents an assumption being made about a program | 9 | |
8688256791 | Postcondition | is a condition that should be true when a method finishes executing | 10 | |
8688256792 | Precondition | is a condition that should be true when a method is called | 11 | |
8688256793 | Actual Parameters | values passed into a method | 12 | |
8688256794 | Formal Parameters | parameters in the header of a method declaration | 13 | |
8688256795 | Parameter List | located in the header of a method lists the types of values that are passed and their names | 14 | |
8688256796 | Return Statement | is the reserved word return followed by tan expression that dictates the value to be returned, the expression must match the return type in the method header | 15 | |
8688256797 | Void | a reserved word used when the method does not return any value | 16 | |
8688256798 | Method Declaration | defines the code that is executed when the method is invoked | 17 | |
8688256799 | Interface | the set of messages an object responds to, defined by the method that can be invoked from outside of the object | 18 | |
8688256800 | Encapsulation | the characteristics of an object that limits access to its variables and methods, all interaction with the object occurs through an interface | 19 | |
8688256801 | instance data | Data that is stored inside an object instantiated from a class | 20 |