List [EMAIL PROTECTED]
Sent: Sunday, August 19, 2001 3:34 AM
Subject: Re: [PHP] class variables and methods
Joe,
There are varying opinions on this issue. The argument for
methods is that it hides the internal structure of your class. This
is always a good thing. This means
??
-Original Message-
From: Tom Carter [mailto:[EMAIL PROTECTED]]
Sent: Sunday, August 19, 2001 2:19 AM
To: Andrew Libby; Joe Sheble (Wizaerd)
Cc: General PHP List
Subject: Re: [PHP] class variables and methods
There was a long discussion on this in a java forum I am part
(Wizaerd)
Cc: General PHP List
Subject: Re: [PHP] class variables and methods
There was a long discussion on this in a java forum I am part of, the
product of which was basically this...
1. All variables in a class are best left to be private (not sure PHP
has
this, but the programmer
I've been doing some reading up on OOP in PHP, and looking at some of the
classes available on the web, and I've got what is probably a stupid
question. I've seen this many many times..
class someclass {
var $somevar = someval;
function set( $key, $val ) {
Joe,
There are varying opinions on this issue. The argument for
methods is that it hides the internal structure of your class. This
is always a good thing. This means that the internals of the class
can be changed, but the user interface (the user is the programmer here)
does not change.
5 matches
Mail list logo