Classes vs. not using them
Posted 17 July 2006 - 07:36 AM
Posted 17 July 2006 - 07:46 AM
so it becomes easier to extend a certain application or re-use your code. Classes are notting
more then a described object with the necessary variables and functions to manipulate the object.
Posted 17 July 2006 - 07:51 AM
Posted 17 July 2006 - 08:02 AM
But if you 'as webmaster' want to log-in you want more privileges. So you make another class superuser extended from the regular user class and you can re-use the function and extend them without rewriting them.
Posted 17 July 2006 - 09:46 AM
I suggest... if your interested in the whys... a good place to start is the book thinking in java, available free. ok... so its not php, but php and java share much the same syntax these days, and the oop concepts don't change.
0 user(s) are reading this topic
0 members, 0 guests, 0 anonymous users