RE: [PHP] Can a class instance a property of another class

From: Date: Fri, 26 Jan 2007 23:33:27 +0000
Subject: RE: [PHP] Can a class instance a property of another class
Groups: php.general 
Request: Send a blank email to php-general+get-247864@lists.php.net to get a copy of this message
[snip] This syntax fails, so I know this isn't right, but I hope you get the idea. Can it be done? [/snip] Extends? class new_connection extends connection {} [/snip again] I read too fast.... A member function can be referenced by another class as long as the function is public. You would just use it within the class as you would call any member function.

« previous php.general (#247864) next »