In: Computer Science
What is an Object?
Coad and Yourdon - A person or thing
through which action, thought, or feeling is directed. Anything
visible or tangible; a material product or substance.
James Martins – From a very early age, we
form concepts. Each concept is a particular idea or understanding
we have about our world. These concepts allow us to make sense of
and reason about the things in our world. These things in our
world. These things to which our concepts apply are called
objects.
Grady Booch – A tangible and/or visible
thing; something that may be apprehended intellectually; something
toward which thought or action is directed. An individual,
identifiable item, unit, or entity, either real or abstract, with a
well-defined role in the problem domain. Anything with a crisply
defined boundary.
Coleman - An object is a thing that can be
distinctly identified. At the appropriate level of abstraction
almost anything can be considered to be an object. Thus a specific
person, organization, machine, or event can be regarded as an
object.
OBJECT THINK
The object thinks approaches help us believe that an object in a computer system is like us. Hence to find out about the object, we let it talk about itself
An example is a button on a screen
I am a button on the screen
I know what window I am attached to
I know my position in the window
I know my height and width
I know background color
I know what the label that appears on me
says
I know what to do when pushed
Using Object Think in terms of the environment the object is in.
An example is a dog
I am actually a dog
I know people call me Rover
I know people with certain voices and smells regularly
feed me.
I know how to eat, sleep, roll over, bark and chase
cars
An example of a dog in the context of a
veterinarian’s administrative work
I am a dog object in the work context of a veterinarian
I know my license number, name, breed, birth date and
weight
I know the owner I am associated with.
I know the check up results I am associated
with
I know my next appointment date and time
I know if my patients’ status is “all paid up” or
“payment overdue”
TASK ONE
Identify and name the following objects and identify
the work context based on the object think description
provided.
I am a ___________ in the work context of a ____________.
I know my title, author, and call number
I know how to be checked out.
I know how to be returned.
I am a __________ in the work context of a ____________.
I know my title, author, publisher, price and ISBN number
I know how to be put on order
I know how to be stocked
I know how to be sold
I know how to be returned
TASK TWO
Use the object think approach to write description for
the following
I am actually a car
I am a car object in the work context of a repair
shop
I am a car object in the work context of a car
collector.
TASK ONE:
I am a __Book__ in the work context of a __Library__.
I know my title, author, and call number
I know how to be checked out.
I know how to be returned.
I am a __Book__ in the work context of a __Book Shop__.
I know my title, author, publisher, price and ISBN number
I know how to be put on order
I know how to be stocked
I know how to be sold
I know how to be returned
TASK TWO:
The description is given below:
I am actually a car
I know how to derive
I know how many gears I have
I know how many windows I have
I know my owner name
I know my color
I know my name
I know my manufacturer company name
I know the model number
I am a car object in the work context of a repair shop
I know my owner name
I know which color I have
I know a new color name
I know how much time it will take to repair
I know my serial number in the garage
I know what defect I have
I am a car object in the work context of a car collector.
I know my owner name
I know my collector name
I know my serial number in the garage of collector
I know my collector address
I know how to be returned