massive Posted May 25, 2006 Share Posted May 25, 2006 whats the diff. from reusing functions for future projects using plain standard functions w/o OOP from reusing functions w/ Object oriented programming? Quote Link to comment https://forums.phpfreaks.com/topic/10413-oop-functions-vs-plain-standard-functions/ Share on other sites More sharing options...
trq Posted May 25, 2006 Share Posted May 25, 2006 Far too many to say Im afraid, and this question gets asked all the time. Objects provide allot more functionality than procedural functions. Quote Link to comment https://forums.phpfreaks.com/topic/10413-oop-functions-vs-plain-standard-functions/#findComment-38796 Share on other sites More sharing options...
nogray Posted May 25, 2006 Share Posted May 25, 2006 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. Quote Link to comment https://forums.phpfreaks.com/topic/10413-oop-functions-vs-plain-standard-functions/#findComment-38969 Share on other sites More sharing options...
massive Posted May 26, 2006 Author Share Posted May 26, 2006 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 :) Quote Link to comment https://forums.phpfreaks.com/topic/10413-oop-functions-vs-plain-standard-functions/#findComment-39120 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.