Ch. 6 Deeper Look Flashcards
Modules
Experience has shown that the best way to contruct and maintain a large program is to construct it from small simple pieces or MODULES.
Can use divide and conquer technique to do so.
Java API
Java Application Programming Interface
has predefined methods and classes
Method Overloading
Methods of the same name can be declared in the same class, as long as they have different sets of parameters.
A method is invoked with a ______
Method call
A variable known only within the method in which its declared is called a _____
Local Variable
The _____ of a declaration is the portion of a program taht can refer to the entitiy in the declaration by name
VARIABLE
- Variable is a placeholder
- You can place a value in a variable for use later or even change it but once changed the previous value is lost
“TYPE”
- The “type” of a variable describes the kind of value that the variable is allowed to store
MODULAR DESIGN
Methods called functions or procedures help you modularize a program by seperating its task into self contained units
One method used is divide and conqure,