Re: Object Oriented Programming question

From: Date: Wed, 20 Jan 2010 15:22:13 +0000
Subject: Re: Object Oriented Programming question
References: 1 2 3 4 5 6  Groups: php.general 
Request: Send a blank email to php-general+get-301261@lists.php.net to get a copy of this message
On Wed, Jan 20, 2010 at 06:47:04AM -0600, Jay Blanchard wrote: > [snip] > > Another advantage of OOP that is difficult to > > provide via the procedural paradigm is polymorphism. > > Agreed. Though the advantages of polymorphism are questionable, > depending on your viewpoint. > [/snip] > > In a loosely typed language like PHP that advantages of polymorphism far > outweigh any potential disadvantages, especially where virtual functions > are concerned. My viewpoint may be jaundiced from having programmed in C++, but the polymorphism of PHP seems a little crippled by comparison. Paul -- Paul M. Foster

« previous php.general (#301261) next »