This is a very good and useful class :-)
Personaly, i dont had work with class extensions ... :-)
In what situations you use abstract, and why is diferent than a public .. !
I use basicaly function foo, without specify if is public, private ... !
Is good to take this distinction ?
Thanks for tips :-)
Frederik Yssing - 2012-04-27 19:11:17 - In reply to message 1 from Josť Filipe Lopes Santos
First of all, thank you :)
I use the abstract sort of the same way, as a prototype i C.
I want every class that extends on the basic class to have its own implementation of that function. Granted I could have done that without using abstract.
But for me its a great way to make sure, that every class extension have its own implementation of the abstract function. This works really well if there are more people working on the classes.
The reason why I used abstract here, was to show my fellow students how it could be implemented.
The private and public declarations are used to "protect" functions from being accesible from outside the class. A Public function can be used outside the class ($foo->publicfunction) where as the private can only be used inside the class (self::privatefunction).
I hope this answers your questions, if not just ask again :)