CourseNotes
Published on CourseNotes (https://course-notes.org)

Home > AP Unit 4 Vocabulary Flashcards

AP Unit 4 Vocabulary Flashcards

Terms : Hide Images [1]
8567422009Void MethodsA section of code belonging to a class that is given a name, has parameters, and does not return a value.0
8567422010A parameterThe local variable in a method header that holds the data sent in.1
8567422012ArgumentThe data sent to a method. that must match the parameter data type it is getting sent to.2
8567422013Primitive Types as ParametersWhen a method copies the value and stores it in the local parameter. Any changes made are lost when control returns to the calling function.3
8567422014Class Types as ParametersWhen a method copies the reference to the memory address and stores it in the local parameter. Since the reference points to the original spot in memory all changes are saved.4
8567422015The return commandSends a value back to the calling method.5
8567422017Return MethodsMethods that send back any type of primitive or class data. When it sends back a primitive type it returns a copy of the value. When it sends back a class type it returns a reference to that data in memory.6
8567422018Overloaded methodsWhen a program has more than one method with the same name.7
8567422019SignatureNumber and types of parameters8
8567422021RecursionA method that repeats by calling itself.9
8567422023The stackThis is the location in memory where the interrupted method calls are stored. Once the base case is hit the program moves through the stack and carries out all the commands.10
Powered by Quizlet.com [2]

Source URL:https://course-notes.org/flashcards/ap_unit_4_vocabulary_flashcards

Links
[1] https://course-notes.org/javascript%3Avoid%280%29%3B [2] http://quizlet.com/