|
|
|
IBM developerWorks : Web Architecture : Education - Tutorials | |
Occasionally programmers new to object-oriented development and PHP may define subclasses that contain empty function definitions. This is necessary only if you intend to disable the behavior of a parent class -- generally as a result of a poor design in the first place. Eliminate any empty functions, such as functions that simply return, and their function calls. The unnecessary overhead of calling a function that does nothing and then returning from it is eliminated. |
|
|