Repeat after me “Favor composition over inheritance.”
?
Composition is a technique used in Object Oriented Programming to make two or more objects interact…
LOL! Now explain to them that protected/private inheritance in C++ is really composition
Is it?
Unless you’re doing PHP 5, don’t do OO.
Indeed! specially if you want your apps to scale well… otherwise PHP4 is good for Kindergarten level OOP
Disclaimer: despite the above view we have been using OO in PHP since V3
It’s possible to do OO in C as well.
Name (required)
Mail (will not be published) (required)
Website
Notify me of followup comments via e-mail
Notify me of new posts by email.
I am a Peadiatrician and a Forensic Expert by Education and a PHP coder by profession. Currently CTO of my own company SANIsoft
I am also a photographer, bird watcher, nature lover, a FOSS enthusiast. A father, husband and paranoid. I am!
?
Composition is a technique used in Object Oriented Programming to make two or more objects interact…
LOL! Now explain to them that protected/private inheritance in C++ is really composition
Is it?
Unless you’re doing PHP 5, don’t do OO.
Indeed! specially if you want your apps to scale well… otherwise PHP4 is good for Kindergarten level OOP
Disclaimer: despite the above view we have been using OO in PHP since V3
It’s possible to do OO in C as well.