Re: [Linux-programlama] php de class larin dizisi

---------

New Message Reply About this list Date view Thread view Subject view Author view Attachment view

From: Enver ALTIN (ealtin@parkyeri.com)
Date: Wed 13 Apr 2005 - 17:00:24 EEST


On Wed, 2005-04-13 at 16:24 +0300, Tufan BIYIKTAS wrote:
> Merhaba

Merhaba,

> Asagidaki gibi class lar tanimlayalim
>
> class A
> {
> //...
> }
>
> class B extends A
> {
> //...
> }
>
> class B de A turunden objec lerin dizisini olusturmak istiyorum.
> bunu nasil yaparim.

Sanki,

        class A {
                // ...
        }
        
        class B extends A {
                var $x = array();
                function B {
                        $this->x[]=new A();
                }
        }

olur gibi ama... :)

-- 
.O.
..O   Enver ALTIN                   |   http://skyblue.gen.tr/
OOO   Software developer @ Parkyeri | http://www.parkyeri.com/


_______________________________________________
Linux-programlama mailing list
Linux-programlama@liste.linux.org.tr
http://liste.linux.org.tr/mailman/listinfo/linux-programlama


New Message Reply About this list Date view Thread view Subject view Author view Attachment view

---------

Bu arsiv hypermail 2.1.2 tarafindan uretilmistir.