Re: simple class & constructor

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Tue, 2010-10-19 at 17:41 -0700, David Harkness wrote:
> The "constructor" is the __construct() method, and it gets executed
> automatically when you instantiate the class into an object. The class
> defines the state (fields/properties) and behavior (methods/functions) that
> its objects will have. Instantiating the class is the fancy term for
> creating a new object with that state and behavior and calling the class's
> constructor on it. From then on you can call other methods on the object and
> access its public state.

Ye! Ha! Just as I suspected! I can now say I have a very thorough
understanding of Classes, Objects and methods. :-)

-- 
Blessings
David M.


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux