Re: Inheritance

From: Date: Sat, 13 Jul 2002 05:11:44 +0000
Subject: Re: Inheritance
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-107478@lists.php.net to get a copy of this message
Привет! 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.......

« previous php.general (#107478) next »