Привет!

Jason White wrote:
> I have a class Foo{} which has a method Print().
> I have another class FooBar{} which extends Foo{} and has its own method
> Print().
> 
> How do I invoke Foo{}'s Print() method from within FooBar{} once its been
> overridden?

parent::print();

if you have multilayered inheritance you may explicitely say which 
ancemtor class you are calling, like foo:print().

Пока
Альберто
Киев


@-_=}{=_-@-_=}{=_-@-_=}{=_-@-_=}{=_-@-_=}{=_-@-_=}{=_-@-_=}{=_-@

LoRd, CaN yOu HeAr Me, LiKe I'm HeArInG yOu?
lOrD i'M sHiNiNg...
YoU kNoW I AlMoSt LoSt My MiNd, BuT nOw I'm HoMe AnD fReE
tHe TeSt, YeS iT iS
ThE tEsT, yEs It Is
tHe TeSt, YeS iT iS
ThE tEsT, yEs It Is.......


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to