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 
extends ab
{
    public function
ornek();
}

class 
implements c
{
    public function
test()
    {
    }

    public function
deneme()
    {
    }

    public function
ornek()
    {
    }
}


Her programcı birgün Php yi tadacaktır
2010-07-04 00:40:48

phpkodlari.com © 2009 Herkes Php öğrenecek
Eglence ve Oyun: Gamikro