CMSC Vocab 4 and 5 Flashcards
Helper Method
A method that allows a sequence of instructions to be treated as a single unit of work.
Modularity
Refers to the organization of code into dependent units with sharply defined responsibilities
Separation of Concerns
Thinking separately about elements of a problem that were logically dependent.
header
specifics the name of the method and return type
body
group of statements surrounded by curly braces. It is executed whenever the method is called.
access specifiers
A keyword that determines where a class member, such as a method, is accessible or visible
principle of least privilege
Access to code is limited to those parts of an application that actually need it for proper functioning
return type
The type of value returned a method
method parameter
A name used by a method for an argument received from its caller.
monolithic program
is one in which all functionality is packed into a single block of code.
conditional executions
which enables one or more statements to be executed only if a specified condition holds.
decision statements
a decision to be executed if a specified condition holds.
Boolean expression
expressions that evaluate to true or false
binary operator
applied to exactly two operands
unary operators
act on a single command
tenary operator
three way operator
relational operator
relating pairs of numbers
less than operator
x < y
shallow equality
variables referring to the same object
deep equality
referring to objects in the same state
=
x = (GETS the value of) 1
switch value
execute one of several possible statements depending on a particular value.
case labels
labels to identify case statments
all subsequent cases
all cases that are followed will be treated as matches