Access over 20 million homework & study documents

IT210 - Week 8 Object-Oriented Data and Processes

Content type
User Generated
Type
Homework
Rating
Showing Page:
1/2
Driving a vehicle
Open the door
Sit in the driver’s seat
Close the Door
Put on the seatbelt
Put key in ignition
Check area (mirrors)
Put the car in gear
Press down on the gas pedal
Think about this task in an object-oriented way, and identify the objects involved in the task.
Objects:
1. Car has the following objects (door, ignition, seat-belt, mirror, gear, gas pedal}
2. Key
Identify how you can encapsulate the data and processes you identified into an object-oriented
design.
With Car
Set Door.close = true
Set Seat-belt.on = true
Call Ignition
Call Mirror adjust
Call Gearngage
Call GasPedal
End With Car
The fundamental difference between an Object-Oriented design and a structured design is how
control is handled. In a structured approach, control is modeled separately from functions. A
good structured design has a single “smart” controller that performs only control functions and
many worker components that do the work. In an Object-Oriented design, control is partitioned
into each object (i.e., each component is designed to stand alone). This is a service-oriented
approach. To accomplish a given task, you have to go and get the services you need from
different service suppliers (i.e., objects).The structured approach is very efficient. Things get
done quickly and efficiently. While typically, the design is flexible enough to handle requirement
changes within a given system, the design is not well suited for reuse in a different domain. On

Sign up to view the full document!

lock_open Sign Up
Showing Page:
2/2

Sign up to view the full document!

lock_open Sign Up
Unformatted Attachment Preview
Driving a vehicle Open the door Sit in the driver's seat Close the Door Put on the seatbelt Put key in ignition Check area (mirrors) Put the car in gear Press down on the gas pedal Think about this task in an object-oriented way, and identify the objects involved in the task. Objects: 1. Car has the following objects (door, ignition, seat-belt, mirror, gear, gas pedal} 2. Key Identify how you can encapsulate the data and processes you identified into an object-oriented design. With Car Set Door.close = true Set Seat-belt.on = true Call Ignition Call Mirror adjust Call Gearnga ...
Purchase document to see full attachment
User generated content is uploaded by users for the purposes of learning and should be used following Studypool's honor code & terms of service.

Anonymous
I use Studypool every time I need help studying, and it never disappoints.

Studypool
4.7
Trustpilot
4.5
Sitejabber
4.4