|
Object class, 236–239, 238–239
object-oriented programming, 119
ObjectLifeCycleLab animated illustration, 133–134, 133–134
ObjectMethodLab animated illustration, 127, 127
objects, 118
vs. arrays, 118–119
arrays as, 109–112, 110–112
classes, 119–120, 119
data for, 120–122, 121–122
defined, 472
equality of, 234, 234, 236, 472
exercise questions for, 136–137
exercise solutions for, 423–426
methods for, 126–127, 128
multiple, 122–125, 123, 125
reference data with, 134–136
references to, 121, 121, 190–192
static data in, 128–130
static methods in, 130–132
odometers, base-2, 21–22, 22
Officer class, 151–153
one-dimensional arrays
characteristics of, 106
defined, 472
opcode bits, 6, 6
opcodes, 6–7
Open... menu item, 362
operands, 37, 472
operation codes, 6, 6
operations, 34
arithmetic
basic, 37–38
bitwise, 40–41, 40–41
modulo, 42
precedence in, 38–40, 39
shifting, 42–44, 42–44
unary, 44–46
boolean
comparison, 50–51
evaluation in, 46–48, 47–48
short-circuit, 49–50
comments, 36
compound assignment, 51
exercise questions for, 55–56
exercise solutions for, 409–412
result types in, 52–54, 53
white space, 34
or operators
bitwise, 40–41
boolean, 46–48, 47–48
order of method execution, 68
origins
defined, 472
in drawing, 277, 278
OS X Developer Tools, 401
out variable, 241–242
output
file. See files
printing, 29–30
Oval class, 133
ovals
drawing, 280–281, 280–281
filled, 281–282, 281
OverlayLayout layout managers, 325
overloading
constructors, 147–148
defined, 472
methods, 65
overriding
access control with, 178–180, 179
defined, 472
methods, 152–153, 152
|