Results 1 to 25 of 67
Thread: What's so good about OOP?
May 12, 2002, 03:22 #1
- Join Date
- May 2002
- 0 Post(s)
- 0 Thread(s)
What's so good about OOP?
Now, in Perl or PHP, OOP is nothing more than having subroutines and variables separated into a different file (or module). I really don't see the point of declaring a package or class in Perl and PHP respectively.
The only difference I see is that the methods can access attributes declared outside the methods itself and within the class or package. But besides this, I don't see any benefits of using OOP.
Maybe someone can quote me with a few examples? You don't have to quote complex ones like databases. Just a simple example like the classic "hello world" will do.
Many people told me that with OOP, you can add functions to a script very easily. I don't know why.