The easiest way for me to explain and understand OOP was to think of it this way.
You have an object and in that object contains functions that only pertain to that one object. See diagram below. Object1 | |_____ function1 | |_____ function2 . . .... etc Object2 | |_____ function1 | |_____ function2 . . .... etc Note: Inside an object you can have functions that have the same name as other functions inside another object. This makes life really easy if you have to share code with someone because if you are totally procedural/functions you might have some functions with the same name and then your code won't work. However, if you place your functions inside an object you can avoid this problem all together.. kind of nice isn't it? :) Anyway, that's how I explain OOP in a nutshell to people that don't understand. Just don't forget there are a TON of other things about OOP but once you get the basic idea of how it works down (like this) then the rest is pretty easy to pick up and understand. Hope this helps! ----- Original Message ----- From: "Larry Brown" <[EMAIL PROTECTED]> To: "PHP List" <[EMAIL PROTECTED]> Sent: Tuesday, January 21, 2003 11:31 AM Subject: RE: [PHP] dreading OOP > The only reason I feel the need to expand my understanding is that I have to > learn other concepts to produce my client's solutions. For instance I am > now being asked to use SOAP to communicate with a vendor of his. Now I am > reading about SOAP and frequently the descriptions rely on the reader's > understanding of OOP. I can individually scrutinize a description and break > it down to its elements. Then I can picture what is being said, but without > having used those methods in my code, it is frustrating reading. I don't > know that SOAP is in and of itself OOP but people that write about it use > OOP based consepts to exlain what is happening. And this is one example. > Don't let me go into the Java and Javascript world! > > Larry S. Brown > Dimension Networks, Inc. > (727) 723-8388 > > -----Original Message----- > From: Johnson, Kirk [mailto:[EMAIL PROTECTED]] > Sent: Tuesday, January 21, 2003 10:40 AM > To: PHP List > Subject: RE: [PHP] dreading OOP > > > > -----Original Message----- > > > >However, my mind apparently works different and I keep trying to relate the > OOP structure to > > what I already know which equates an object to a function. I am resolving > > > to purchase a book dedicated to instruction in the inns and outs of OOP. > > Specifically at it relates to PHP would be great but my emphasis is > towards > > something that teaches someone that is stubborn in his reliance on > previously learned > > methods. I hope this makes sense and I'm not alone on this. :) > > My only suggestion is that you re-consider why you want to take up OOP. If a > procedural approach works for you, go with it. It's not like we're building > air traffic control systems here ;) > > Kirk > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, visit: http://www.php.net/unsub.php > > > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, visit: http://www.php.net/unsub.php -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php