Linked by John Collins on Wed 21st Apr 2004 06:42 UTC
The purpose of this article is to give a novice programmer the basic idea of what OOP is, as implemented using PHP. Readers should have a basic knowledge of programming ie what variables are, variable types, basic methods of writing comments, and how to enter code into a text editor.
Permalink for comment
To read all comments associated with this story, please click here.
"A PHP Beginner's Crash Course into Object Oriented Programming, part 1 of n"
There isn't a concensus on what OOP is about, but generally encapsulation is only the tip of it. IMHO polymorphism is the key to OOP, without which OOP does not have significant advantage over procedural programming.
And Python is a much better first OOP language to learn. Depends on your background or interest, you can also learn Squeak Smalltalk or Objective-C.
"A PHP Beginner's Crash Course into Object Oriented Programming, part 1 of n"
There isn't a concensus on what OOP is about, but generally encapsulation is only the tip of it. IMHO polymorphism is the key to OOP, without which OOP does not have significant advantage over procedural programming.
And Python is a much better first OOP language to learn. Depends on your background or interest, you can also learn Squeak Smalltalk or Objective-C.