The third concept in code optimization is associated with sending parameters to methods. They are still called arguments in some instances, so that you can differentiate between formal arguments and actual arguments. Regardless, if a method does not need the values, then the values should not be passed to the method. This makes for smaller, and therefore faster interfaces between the calling method and the called method. It also emables overloading and polymorphism.
Select the "Next" link to discuss the fourth guideline.
|Previous Page||Page 6 of 9||Next Page|
|Copyright 2012 Yvonne V. Richardson|