inherited method call - I got it!

Поиск
Список
Период
Сортировка
От Gyozo Papp
Тема inherited method call - I got it!
Дата
Msg-id 003101c0d0a2$9c2f5180$a449c5d5@jaguar
обсуждение исходный текст
Ответ на RE: HTTP authentication  ("Christian Marschalek" <cm@chello.at>)
Список pgsql-php
First, thank all of you for your guess & tips.

It wouldn't be so weird to find the right answer if I was thinking about the similarity of PHP and C++ syntax.

and one more pleasure, function overriding is enable and working correctly and all the functions are virtual! OO
supportof PHP is great! (except multiple inheritance) 

So I 've got the answer, look:

 class A {
// you've already known it!
 }

 class B extends A
 {
     function f1($x)
     {
         A::f1($x*4); //  ancestor class name double colon as the same in C++
         $this->x *= 2;
     }
}



В списке pgsql-php по дате отправления:

Предыдущее
От: Jason k Larson
Дата:
Сообщение: Re: inherited method call
Следующее
От: Richard Whittaker
Дата:
Сообщение: Unixtime function?...