Re: invoking unrelated constructor's

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi Dai Wang,

You are invoking "related" constructor (you are calling parent's
constructor) whereas i was asking about invoking "unrelated" constructor.
In my code 2 classes are not related to each other.

I received good knowledge from my fellow members.

Thanks
Sachin Raut


On Sat, Nov 23, 2013 at 12:03 AM, Mattias Thorslund <mattias@xxxxxxxxxxxx>wrote:

> On 11/22/13 7:46 AM, Sebastian Krebs wrote:
>
>> 2013/11/22 Sachin Raut <imsachinraut@xxxxxxxxx>
>>
>>  I am learning PHP & came across that code in the book, hence thought to
>>> clear the doubt. Inheritance would have solved that issue.
>>>
>>> Could you please tell me which "design patterns" are recommended.
>>>
>>>  That depends on which problem you actually want to solve.
>>
>
> All of them!!  Who wants problems?
>
> Happy Friday,
>
> Mattias
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>
>

[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux