4.1 Introduction

Experience has shown that the best way to develop and maintain a large program is to construct it from smaller, more manageable pieces. This technique is called divide and conquer. Using existing functions as building blocks for creating new programs is a key aspect of software reusability—it’s also a major benefit of object-oriented programming. Packaging code as a function allows you to execute it from various locations in your program just by calling the function, rather than duplicating the possibly lengthy code. This also makes programs easier to modify. When you change a function’s code, all calls to the function execute the updated version.

..................Content has been hidden....................

You can't read the all page of ebook, please click here login for view all page.
Reset
18.190.207.144