Re: invoking unrelated constructor's
| From: | Sachin Raut | Date: | Fri, 22 Nov 2013 18:47:46 +0000 |
| Subject: | Re: invoking unrelated constructor's | ||
| References: | 1 2 3 4 5 6 7 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-322488@lists.php.net to get a copy of this message | ||
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@thorslund.us>wrote:
> On 11/22/13 7:46 AM, Sebastian Krebs wrote:
>
>> 2013/11/22 Sachin Raut <imsachinraut@gmail.com>
>>
>> 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
>
>