Chapter Nine - Object-Oriented Design and High-Level Programming Languages Flashcards
1
Q
object
A
- object that makes sense within the context of the problem
2
Q
object class (class)
A
- group of similar objects (e.g. groups of students; all are the same, but have difference characteristics, e.g. height, gender…)
3
Q
fields
A
- the class contains these; they represent the properties and behaviors of the class. (can contain data VALUES or METHODS)
4
Q
method
A
- NAMED ALGORITHM that manipulates the DATA VALUES in the OBJECT
5
Q
encapsulation (2 definitions)
A
- IMPLEMENTATION DETAILS of a class are kept HIDDEN from the user»_space; get information (e.g. getName, getEmailAddress)
- language feature that enforces INFORMATION HIDING
6
Q
compiler
A
- programs that TRANSLATE programs written in HIGH-LEVEL LANGUAGE into MACHINE CODE
7
Q
interpreter
A
- program that TRANSLATES and EXECUTES the statements in SEQUENCES (vs. assembler & compiler which produces machine code as output; interpreter translates statement then IMMEDIATELY executes it)
8
Q
bytecode
A
- STANDARD MACHINE LANGUAGE for Java
9
Q
Boolean expression
A
- returns TRUE or FALSE
10
Q
strong typing
A
- each VARIABLE is assigned a TYPE, only variables of that TYPE can be stored in the variable
11
Q
data type
A
- description set of VALUES and OPERATIONS that can be applied to values of that type. (e.g. int, range of values depends on how much memory is assigned; operations: + - / *…)
12
Q
declaration
A
- associates IDENTIFIER with VARIABLE/action something else
13
Q
reserved word
A
- word in a language that has a special meaning; cannot be used as identifier (e.g. int, double)
14
Q
case sensitive
A
- capitals and lowercase are considered different words (C++, Java, Python)
15
Q
control structure
A
- instruction that controls the ORDER in which other INSTRUCTIONS are EXECUTED