Object-oriented programming, according to Richard Baldwin, is “a programming style that mimics the way most people think and work.” In his book Object Oriented Programming for ActionScript 3 he gives a real-world example of putting together a child's playset. The kit for the playset has hundreds of little parts like nuts, bolts, and brackets. You assemble them into larger units: the swings, the playhouse, the slide, the framework. Those are the “objects” that you then combine to make the functioning playset.
You can put together and test the slide without worrying about the swings. You can assemble the framework before you have anything to attach to it. If you have to make adjustments to the playhouse part, like replacing a cracked plastic shutter with a nice wooden one, that doesn‘t affect any other component of the playset. If you decide to move the swings from the left to the right of the framework, all the little bits that make up the swing component move with you; you don’t have to deconstruct it here and build it all over again over there.
information and examples coming soon