An excerpt from the Lavin OOP book that I'm not sure of the meaning...
<?php
class ThumbnailImage
{
//Data Members///////////
private $image;
private $quality = 100;
private $mimetype;
private $imageproperties = array();
private $initialfilesize;
/////////////////////////
}
?>
--"The assignment of a value to $quality shows that data members may
be initialized upon declaration, but they must be initialized with
constant values. You could not, for instance, invoke a PHP function
call or a method"--
Huh? Upon declaration of ThumbnailImage, is that correct??
Does it mean I can do this?
$thumb = new ThumbnailImage();
$thumb ->quality = 80;
What would invoking a PHP function call or a method, which would not
be allowed, look like?
I hope I'm not setting anyone's IQ back by asking this. =p
Professional Superhero
mgir...@gmail.com
386-503-3505
Me: www.lovemikeg.com
Us: www.cfphp.org