





















Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
This page cannot be seen from the preview
Don't miss anything!






















What is an Object?
(^) How to Describe an Object
(^) The components of an object
Finding Objects - Scenario’s
Object classification
Objects contain data like any other data record.
(^) Data can be of many different types – characters,
strings, integers, booleans, dates etc.
1 or several data items will identify the data
object;
Often in object oriented development you will
need to identify objects from scenarios.
(^) A scenarios is an outline of events which happen
at different times during system execution.
5
Object 1 Object 2^ Object 3 Object 4
A ‘class’ is a software
design which
describes the general
properties of
something which the
software is modelling.
Individual
‘objects’ are
created from
the class
design for
each actual
thing
Class Name
Attributes
Operations
Car
startEngine()
stopEngine()
changeGear()
EngineStatus
Gear
Speed
Remember that
the class is a
template for creating
objects
Association has two possible roles
Each a direction on the association
car to person (driven_by) & person to car (drives)
A role can be labeled
You can name the role after the target class
Symbols used in multiplicity include the following
1 (exactly one)
n (where n is a single number)
1 .. * (the range 1 to infinity)
n1 .. n2 (where n1 and n2 are single numbers forming a
range)
0 .. 1 (zero or one)
Car
startEngine()
stopEngine()
changeGear()
EngineStatus
Gear
Speed
Person
driveCar()
Age
Height
1 Driver
One Person associates with one car
Student Module 1..*
studentModuleDetails
studentId, moduleId
attendance, marks
register(),marking()
studentId moduleId
Student Module
studentModuleDetails
moduleId, studentId
attendance, marks
register(),marking()
studentId moduleId
Objects which contain other objects are called composite
objects.
Motorcycle
Frame
Engine
Fuel Tank
Wheels
Motorcycle
Frame Wheels Fuel Tank Engine
Car Engine
Aggregation
1
Person
Drives
There is a stronger variety of aggregation called
composition
(^) The part object(s) have no meaning when the
relationship is broken.
Part object(s) live and die with the whole
(^) If the COMPONENT OBJECT is detached from
its composite object and can sensibly exist apart
from the Composite Object then the relationship
is aggregation, otherwise it is composition.