Re: Inheritance of class methods

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

 



Alain Roger schreef:
> Hi,
> 
> i have the following classes:
> class A
> {
>   public function EchoMe($txt)
>   {
>     echo $txt;
>   }
> }
> 
> class B extends A
> {
>   ...
> }
> 
> in theory i can write something like that:
> 
> $b = new B();
> $b->EchoMe("test");
> 
> and i should get echo "test" on screen.
> am i correct ?

with regard to theory, here's one of mine:

in the time you wrote the email you could have run the code and
found out for yourself.

enjoy.

> 


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