Object Interaction Part 1 Flashcards
(10 cards)
Abstraction
The ability to ignore details of parts, to focus attention on a higher level of a problem
Modularization
The process of dividing a whole into well-defined parts that can be built and examined separately and that interact in defined ways
Class diagram
Diagram that shows the classes of an application and the relationships between them. It gives them information about the source code and presents the static view of a program.
Object Diagram
Diagram that shows the objects and their relationships at one moment in time during the execution of an application. It gives information about objects at runtime and presents the dynamic view of a program
Object reference
A link to an object. Can be stored in a variable with an appropriate object type
Object type
A type that refers to an object. Eg a type String that refers to a String object
Primitive type
In Java, a non-object type such as int, boolean, char, double and long. Types of this kind have no methods.
Logic Operator
Operator that acts on boolean values (try or false) and produces a new boolean value as a result. Eg include && (and), || (or, and ! (not)
Concatenation
Joining two String objects into one. In Java, this is done with a + sign. Eg “Java” + “with BlueJ” yields “Javawith BlueJ”
Modulo operator
Operator (%) that returns the remainder of division between two integers. Eg 7 % 2 returns 1