Study Cards on objects, classes, book
- Internal structure
of one or more classes from various perspectives.
We would then say that a Library Patron has the properties (Attributes) of ?
- Physical address
- e-mail address
- date of birth
In a nonmathematical sense, a set is a collection of elements that have something in common.
Each of the set’s elements is.... ?
- year elected
- political party
Each object would be an instance of a row (also called a record) of the table, with values allowed for each field.
In these cases, each field name indicates an ...?
To do that properly, we need to identify the things that these classes will be the pattern to make, that is, ...?
By investigating the real world, we can note the relevant real-world objects, usually obvious because we can point to them, manipulate them, and name them.
In a library, each book has properties, such as
- catalog number
for each book has a separate existence for the others.
We can manipulate each book. Each book can
What is Reification?
What could be some features that make for a successful candidate object?
• Can be pointed to, literally or figuratively
• Crisp boundary/distinguishable from others
• Has intrinsic identity
• Has some form of persistence
• Nameable with a singular noun or noun phrase
• Has properties, but is not a property itself
• Has behavior, but is not a behavior itself
• Can be created, destroyed, or manipulated
It is your job as a modeler to ...?
How do we call this natural grouping?
- library cards
When does this approach works?
How do we call this process?
We know better because these features are not salient in a lending library context.
Somehow, we detect the books and videos do not behave differently in any relevant way depending on their color or the initials of their publisher
A good class is a ....?
A class name is usually bold, singular, and beginning with a capital letter.
They are not objects; they are not persistent, they are events
Put this phrase aside for later consideration as a possible state for a book to be in a state machine.
Therefore, despite these being events or operations, we convert them to objects so they can be manipulated, though we probably keep them also in the model as events and as operations.
We mentioned that this was possible with Borrowing.
The process of treating a nonobject as an object is ...?
Reification is very common when an event or operation creates a persistent relationship between two objects
Give an example of Reification.
Purchase, Marriage, and Membership.
- Higher grades + faster learning
- Don't study anything twice
- 100% sure, 100% understanding