Object model Flashcards

(19 cards)

1
Q

What is an object?

A

Runtime instances of classes

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

How do object communicate

A

Message passing

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

How do objects work?

A

Computation in objects take place in that they:

  • Store data and implement behaviour
  • Are linked together in a network
  • Communicate through messages
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

How are objects and classes connected?

A

Objects are described at compile time by classes and in runtime these classes act as blueprints for the creation of objects

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

Class Notation: Class Icons

A

Class icons
- Name
- Optionally show attributes and operations (in class diagrams)

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

Class Notation: Class features

A

Access levels:

  • Public (+)
  • Private (-)
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

Object Icons

A

State
Behaviour
Identity

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
8
Q

What is state?

A

Value held in an object

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
9
Q

What is behaviour?

A

The functionality an object contains

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
10
Q

What is object identity?

A

A distinguishing property of an object

  • NOT an attribute value
  • Could be obj memory address
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
11
Q

What are links?

A

References from one object to another shown as links in UML

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
12
Q

What do associations need:

A

A name (not shown)
A role name at each end derived from the field name
A multiplicity at either end
An arrow head illustrating navigability

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
13
Q

How do messages play into OO and UML?

A

A message corresponds to a method call.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
14
Q

What is message passing?

A

Object communication.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
15
Q

Collaborations

A

Object diagrams with messages show collabs in which multiple messages are shown on one diagram

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
16
Q

How are return values represented in UML

17
Q

What is generalization?

A

Best similarity is java extension relationships, ie inheritance

18
Q

Properties of generalisation

A

Gives rise to links between objects
Unlabelled
Never has multiplicities

19
Q

What is polymorphic association?

A

Polymorphic association is a term used in discussions of object–relational mapping, a relationship from one class to multiple classes.