AP Unit 4 Vocabulary Flashcards
Terms : Hide Images [1]
8567422009 | Void Methods | A section of code belonging to a class that is given a name, has parameters, and does not return a value. | 0 | |
8567422010 | A parameter | The local variable in a method header that holds the data sent in. | 1 | |
8567422012 | Argument | The data sent to a method. that must match the parameter data type it is getting sent to. | 2 | |
8567422013 | Primitive Types as Parameters | When 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 | |
8567422014 | Class Types as Parameters | When 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 | |
8567422015 | The return command | Sends a value back to the calling method. | 5 | |
8567422017 | Return Methods | Methods 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 | |
8567422018 | Overloaded methods | When a program has more than one method with the same name. | 7 | |
8567422019 | Signature | Number and types of parameters | 8 | |
8567422021 | Recursion | A method that repeats by calling itself. | 9 | |
8567422023 | The stack | This 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 |