Terms Flashcards
Method overloading
when two methods have the same name but different parameters
method overriding
when a method in the subclass has the same signature(name and parameters) as a method in the superclass
partial overriding
when the overriding method code includes a call to super.method()
wrapper classes
Allows primitive types to act as objects/reference types
Wrapper class examples
Integer and Doubles (capital first letter so they are objects)
Math class constants
PI and E
Waterfall model development
Analysis->Design -> code->debug (linear, does not jump back and forth between planning and implementing)
Object oriented program design
Identify classes-> identify behaviors ->write interfaces ->implement methods (jumps back and forth between planning and coding)
Assertions
precise statements about a program at a given point
precondition
true immediately before a block of code
postcondition
true immediately after a block of code
big O
a quantitative way to evaluate efficiency of a algorithm, describes worst case scenario
Source Code
A collection of programming commands
Attribute
Characteristic of an object
behavior
action an object can do (methods)
instantiate
call the constructor to create the object
state
the attributes of an object that are represented by its instance variable
package
a collection of similar classes
psuedocode
a plain language description of the step in an algorithm