|
|
|
|
Object Oriented Programming for Not Yet Techies 2"Computer Careers: The Modern Programming Concept You Must Show You Understand for High Tech Jobs"by Richard Stooker, President Info Ring Press and author of Secrets of Changing to a Computer Career |
However, if we were to use object oriented programming to do the same thing, we would first of all define everything about the "objects."In the case of object oriented programming, the objects are each player in the fielder. We would put down throwing the ball toward the front of the batter as a function of the pitcher. We would put down catching fly balls in left field as a function of the left fielder. So, when the batter comes up, in object oriented programming we don’t have to re-describe every move he makes. We just tell him to perform his pitcher functions. If the batter pops the ball into left field, we don’t go into vast detail. We might say something like: If ball goes into left field, left fielder fields it. We define all the steps and functions of "field" once, and then we’re done with it. The left fielder knows what to do now, let them do it when it’s called for, as already defined, making object oriented programming simpler and more efficient. We all understand that in real life. It just seems more complicated when you’re trying to define a bunch of computer code into a comprehensible whole called an "object," as though you could really see it and touch it. OOP is therefore more efficient in the long runWhen you first start them, however, you have to be that much more careful setting them up. When you’re writing in a sequential language, if you forget a vital step for the left fielder in one section of code, so that they trips over their feet, you can easily go back and add it in. However, in object oriented programming if you leave out that vital step when you first define the left fielder "object," they will trip over their feet every time the ball heads into left field. To make things more confusing for novices but easier for professionals with computer careers, objects can be re-used in different object oriented programming software programsFor instance, our left fielder object could be traded to a new team, or could added to a softball program, and they would know what to do without any additional object oriented programming coding. If you make the object totally self-contained, that’s known as encapsulation. You want to define objects that are professionals. You can put your left fielders down in any left field in the world and they’ll know exactly how to play, in the game you defined by object oriented programming. Just as you, if you want to have a computer career as a programmer, want to learn your skill so well that you can be put down in any cubicle in the world and know exactly how to write the needed code for object oriented programming. Next: Smalltalk |
|
Use Your New Computer Career as a Stepping Stone to Even Greater SuccessSend off for your free 7-part Techie Plus eCourse now. So that you can learn:
It's fast and easy. You will receive the first part in your email box within minutes. I respect your privacy. I will never sell, rent or trade your email address. After you subscribe, the form will redirect you to a thank you page. Thank you! Rick Stooker |
|
Permission is granted to reprint the above article in an ezine or on a website as long as it is reprinted in full, with no changes, with full credit and with this contact information and link included at the bottom. All other rights reserved. Copyright 2007 by Info Ring Press All Rights Reserved. Computer Careers (Home) Sitemap Contact Privacy Info Ring Press Richard Stooker PO Box 617 130-G Ballwin Manor Dr Ballwin, MO 63011 (636) 394-2052 rick@inforingpress.com |