RE: Can a class instance a property of another class

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

 



[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.

-- 
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