By piccoloprincipe
via unassumingphp.com
Submitted: Nov 27 2012 / 14:06
In a previous post about inheritance, I showed you how to extend a class. One aspect of extending classes that wasn’t fully covered was the idea of overriding a method in a class. You can override a method (function) from the base class by simply redefining the method in the child class.
Add your comment