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
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
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)
3 matches
Mail list logo