AP Notes, Outlines, Study Guides, Vocabulary, Practice Exams and more!

AP CSA Chapter 4 Flashcards

Terms : Hide Images
8688256781private variablesvariable or procedure declared with the private keyword; available only inside the current class0
8688256782public variablesare visibility modifiers that can be applied to the variables and methods of a class1
8688256783final intIntegers that can't be changed. These values help us keep a program encapsulated.2
8688256784Method's Signaturea method's signature is the method's name along with the number, type and order of its parameters3
8688256785Method Overloadingusing the same method name with different parameter lists for several methods4
8688256786Mutator Methodallows changes to be made in a particular value (setX)5
8688256787Accessor Methodprovides read-only access to a particular value (getX)6
8688256788Local Datavariable declared inside a method and cannot be used outside of the method7
8688256789Constructorused to initialize the newly instantiated object, cannot have any return type even void8
8688256790Assertionis a logical statement that can be true or false and represents an assumption being made about a program9
8688256791Postconditionis a condition that should be true when a method finishes executing10
8688256792Preconditionis a condition that should be true when a method is called11
8688256793Actual Parametersvalues passed into a method12
8688256794Formal Parametersparameters in the header of a method declaration13
8688256795Parameter Listlocated in the header of a method lists the types of values that are passed and their names14
8688256796Return Statementis 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 header15
8688256797Voida reserved word used when the method does not return any value16
8688256798Method Declarationdefines the code that is executed when the method is invoked17
8688256799Interfacethe set of messages an object responds to, defined by the method that can be invoked from outside of the object18
8688256800Encapsulationthe characteristics of an object that limits access to its variables and methods, all interaction with the object occurs through an interface19
8688256801instance dataData that is stored inside an object instantiated from a class20

Need Help?

We hope your visit has been a productive one. If you're having any problems, or would like to give some feedback, we'd love to hear from you.

For general help, questions, and suggestions, try our dedicated support forums.

If you need to contact the Course-Notes.Org web experience team, please use our contact form.

Need Notes?

While we strive to provide the most comprehensive notes for as many high school textbooks as possible, there are certainly going to be some that we miss. Drop us a note and let us know which textbooks you need. Be sure to include which edition of the textbook you are using! If we see enough demand, we'll do whatever we can to get those notes up on the site for you!