Re: PHP 5 Question about OO

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

 



maybe have a look at extends....

class Class1 extends Class2 {...

janbro wrote:
Hi List,

I'm using the oo orientation of PHP5 for a while now. All Classes I've
got have a require on top them, if I try to reference to other classes.
something like

require (Class2.php);
class Class1{
	private function ... {
		$refClass2 = new Class2;
	}
}

Now my question, is it possible to skip that require/ include part? In
Java you don't need that, as class and file names are identical.

thx
janbro


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