Chapter 2 - Programming By Example Flashcards
Ch 2 from Eric Roberts
What are statements?
The steps that the method performs, which are listed between the curly braces
Reductionism
Philosophical principle that the whole of an object can be be understood by understanding the parts that make it up
Holistic
Philosophical principle that the whole is often more than the sum of its parts.
Variable
A placeholder for some piece of data whose value is unknown when the program is written.
What do programmers often use to indicate values assigned to variables
boxes
Inheritance
The property of taking on the behavior of the superclass
overriding a method
redefining an existing method so that it does something different from that in it’s superclass
An expression in java is composed of?
terms of operators.
Syntax for declaring a variable
type identifier = expression
Instance variables
variables declared in a class but outside of any method
class variables
defined at the class level rather than the method
static keyword
indicates the declaration introduces a class variable rather than an instance variable
What do you need to use to assign a new value to a variable
assignment statement
Instance Variables
Hold the state
Methods that return types of Boolean
Predicate