Re: [PHP] In what scenario an extension of a class is useful?

2010-06-29 Thread Camilo Sperberg
On Wed, Jun 23, 2010 at 02:58, Rene Veerman rene7...@gmail.com wrote: inheritance of this kind is useful if you have common descendants for specific types of object Nice thought. I imagine something like a DB wrapper, and implementing things such as multiqueries and others on an extension

Re: [PHP] In what scenario an extension of a class is useful?

2010-06-23 Thread Rene Veerman
inheritance of this kind is useful if you have common descendants for specific types of object object mammal ( function eat (mixed $food) function shit () function sleep() ) object carnivore extends mammal ( function eat (meat $food) ) object herbivore extends mammal ( function eat

RE: [PHP] In what scenario an extension of a class is useful?

2010-06-23 Thread Daevid Vincent
Priceless. Could also be extended applied to babies too. ;-p object babies extends mammal ( function eat (milk $food) ) ROFL. -Original Message- From: Rene Veerman [mailto:rene7...@gmail.com] Sent: Tuesday, June 22, 2010 11:58 PM object mammal ( function eat (mixed $food)