Object oriented design made as much sense to me as did Ontology in Philosophy. Perhaps they are trying to examine the same thing.
See if this helps: http://en.wikipedia.org/wiki/Object-oriented_design
Object-Oriented Data and Processes
• Identify a task you perform regularly, such as cooking, mowing the lawn, or driving a car.
• Write a short, structured design (pseudocode only) that accomplishes this task.
• Think about this task in an object-oriented way, and identify the objects involved in the task.
• Identify how you can encapsulate the data and processes you identified into an object-oriented design.
• Describe the architectural differences between the object-oriented and structured designs. Which of the designs makes more sense to you? Why?
I don't know how to write this, I tried and it is wrong, does it make sense to anyone?
2 answers
This is what I did and my instructor said its wrong. How do I fix it?
Driving a Car
Main Module
Class driving a car (door, seatBelt, mirrors, ignition, brake, gear, accelerator)
Sit in the driver seat
With car
End program
Sitting in the driver’s seat
Close the door
Put seat belt on
Check mirrors
Put key in the ignition
Put foot on brake pedal
Put in gear
Place foot on the accelerator
End Sitting in the driver’s seat program
With Car
Set close door = true
Set seatBelt on = true
Call mirror.adjust()
Call ignition.key()
Call brake.press()
Call gear.engage()
Call accelerator.place()
End With Car Program
Driving a Car
Main Module
Class driving a car (door, seatBelt, mirrors, ignition, brake, gear, accelerator)
Sit in the driver seat
With car
End program
Sitting in the driver’s seat
Close the door
Put seat belt on
Check mirrors
Put key in the ignition
Put foot on brake pedal
Put in gear
Place foot on the accelerator
End Sitting in the driver’s seat program
With Car
Set close door = true
Set seatBelt on = true
Call mirror.adjust()
Call ignition.key()
Call brake.press()
Call gear.engage()
Call accelerator.place()
End With Car Program