Re: simple class & constructor

From: Date: Wed, 20 Oct 2010 00:48:37 +0000
Subject: Re: simple class & constructor
References: 1 2 3 4 5 6  Groups: php.general 
Request: Send a blank email to php-general+get-308869@lists.php.net to get a copy of this message
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.

« previous php.general (#308869) next »