I started learning OOP applied to C++. Now I want to know if I am required to read a entire section of a book about PHP’s OOP or just to adapt some little things?
Are there major differences between these two languages or subtle ones that will occur in a proeminent maner?
Thanks
Generally the only difference is that while it is a good idea to make abstract classes and interfaces in C++/Java, you don’t really need to do so nearly as much in a dynamic language such as php, because you are not limited by types. Although it may still be a good idea even if to simply document the code, a lot of times it just adds to the mess.
And as of recent php update, you can use mix-ins (traits).