Jump to content

Archived

This topic is now archived and is closed to further replies.

massive

OOP functions VS. plain standard functions

Recommended Posts

whats the diff. from reusing functions for future projects using plain standard functions w/o OOP from reusing functions w/ Object oriented programming?

Share this post


Link to post
Share on other sites
Far too many to say Im afraid, and this question gets asked all the time. Objects provide allot more functionality than procedural functions.

Share this post


Link to post
Share on other sites
I think the major advantage is that objects can inherit functions from a parent class, so you can have a base class that will do most of the work, and the rest will just extend it. It's like have the function one time or copying 500 times.

Share this post


Link to post
Share on other sites
while i was waiting for your replies i tried to search the benefits of an oo-programming heres the link



[a href=\"http://www.onlamp.com/pub/a/php/2005/07/28/oo_php.html?page=1\" target=\"_blank\"]http://www.onlamp.com/pub/a/php/2005/07/28...php.html?page=1[/a]



i hope this would also help others regarding to my question :)



@ nogray and thorpe i thank you for your reply :)

Share this post


Link to post
Share on other sites

×

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.