MidTerm 2 Flashcards
A sequence of instructions with a name____
Method
____are supplied when a method is called
Parameters
the method ___ is the result that the method computes
Return
when writing a method, we only present the___of the method to the user of the method.
Abstraction
the action of hiding the implementation is known as___
Encapsulation
The engineering term for encapsulation is ___
black box
In Java, a method can never change the contents of a____ that is passed to that method.
Variable
A java program contains ___classes
1 or more
The____is a special static method that Java recognizes as an entry point into a program.
main method
The ___acts as a table of contents or set of directions to control the flow of the program
main method
Every class must have these 3 basic functions of every computation.
input, process, output
A ___ is a special method that is called when an object is instantiated to initialize the instance variables
constructor
The purpose of a constructor is to _____
initialize a newly created object
The name of the constructor must match the ___name
class
A class can have how many constructors?
1 or more