and Answers| Latest Update
signature ✔️✔️the name of the method along with the number, data types, and order of its
parameters, is called the method's signature. So in order to override a method the new method
must have a different signature.
local scope ✔️✔️a method can access its parameters directly but cannot access another
method's parameters and will generate an error.
symbol ✔️✔️also known as an identifier will result from attempting to use an identifier that is
not in scope will generate a cannot find symbol error.
symbol table ✔️✔️each identifier you declare is put in to the symbol table along with the
identifiers data type and where in the program it was defined.This allows the compiler to track
the identifiers that are in scope at any given time.
mutator ✔️✔️the general form of a mutator method is he following:
public void setInstanceVariable(dataType newValue)
it is customary to provide a public mutator method for ay instance variable that the client will
be able to change.
name precedence ✔️✔️the parameter has name precedence so any reference to that name
refers to the parameter not to the instance variable.
no-op ✔️✔️stands for no operation because the statement has no effect. In order to avoid this
effect , choose a different name for the parameter.