07-08-2008, 05:08 PM
|
#6 (permalink)
|
|
The Gregarious
Join Date: Sep 2007
Posts: 684
Thanks: 85
|
Quote:
Originally Posted by quantumkangaroo
Classes are objects which contain methods, member variables, are able to be inherited and much more, objects make our life as developers easier by cutting down on repetitive code.
|
Like delayed said.
And it makes our life easier WITH a set of provided functions.
And actually I said "Classes are LIKE a set of...".
I didn't say it WAS a set of functions.
Quote:
Originally Posted by quantumkangaroo
Earlier versions of PHP support classes eg. PHP3/4, these are not somewhat new versions of php, object handling was rewritten in PHP5
|
Indeed, but in earlier versions PRIVATE PUBLIC and PROTECTED didn't even exists. You used var $var; and for function you just declared it with function and no "private/public/protected".
In order to use this guide correctly, you need a somewhat newer version of PHP.
Quote:
Originally Posted by quantumkangaroo
These variables are called class member variables and you may set a value to them when defining them.
|
No they're not called that. But I didn't set a value to them, now did I? 
Thus, I said that we only put them there, WITH NO VALUE, because that's what I did.
Quote:
Originally Posted by quantumkangaroo
Do a little more research before taking novice users into the world of object orientation?
|
Learn to read between the lines and actually take some time to understand what you're reading?
__________________
Last edited by Tanax : 07-13-2008 at 04:21 PM.
|
|
|
|