Original Post
I have read numerous books and understand the syntax of how to program the classes and objects but I am having problems breaking things down into a suitable OOP approach.
For example if I wanted to design a car, I would add:-
Car
Engine - On(), Off()
Doors - Open(), Shut()
Bonnet - Open(), Shut()
Gear - Forward1(), Forward2(), Forward3(), Forward4(), Forward5(), Neutral(), Reverse()
Brake - On(), Off()
Clutch - On(), Off()
Accelerator - On(), Off()
Is this a suitable breakdown and is there a correct and incorrect answer to this or does it depend on how detailed you want it to be?
I am trying to do an alarm system but I am having problems looking at it in terms of objects. All I have is,
Alarm
On()
Of()
Thats after reading lots of books and articles as well
Any help on this really, really appreciated.
Thanks,
Paul.