Reply to Re: PHP5 - Object

Your name:

Reply:


Posted by Jerry Stuckle on 10/15/07 23:25

Oliver Grätz wrote:
> Jerry Stuckle schrieb:
>> Oliver Grätz wrote:
>>> $topping2 = new withExtraTopping($topping1);
>>> $total = $topping2->getPrice();
>>> print $total;
>>>
>>> Where's the problem, it's a simple decorator example.
>>>
>>> OLLi
>>>
>> Several things.
>>
>> What's the difference between an object of class withExtraTopping and
>> $topping1?
>>
>> What is the price of $topping2? Every pizza place I know charges more
>> for the same topping on a larger pizza.
>>
>
> Changing the concept is out of scope here. I simply ANSWERED the
> question asked by the original poster. Changing the price of extra
> toppings and making the price dependent on the pizza size was NOT part
> of the question.
>
> OLLi
>

It is if you're emulating the real world.

Initial requirements do not always reflect final needs.

--
==================
Remove the "x" from my email address
Jerry Stuckle
JDS Computer Training Corp.
jstucklex@attglobal.net
==================

[Back to original message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация