Php class miras


Zaman:21-05-2012 13:56

php interface miras alma

Php5 aynı anda birden fazla interface yapısını miras aaln yeni bir interface üretmeye imkan veriyor. böylece üretilecek class aynı anda birden fazla ebeveyne sahip olabiliyor.

 

 

interface a{    public function test();}interface b{    public function deneme();}interface c extends a, b{    public function ornek();}class d implements c{    public function test()    {    }    public function deneme()    {    }    public function ornek()    {    }}

 

 

... Devamı

www.Phpkodlari.com © 2009 Herkes Php öğrenecek
Web tasarım ve eğitim kaynağınız.