|
|
As you become more experienced, your programs will grow in size and complexity. When this happens, it becomes more difficult to get your program to do what it is meant to do. Breaking a large task up into smaller tasks by using methods helps make the process easier. Designing methods is complex; the design must integrate a parameter list, the return value, and the goal of the method. Methods should accomplish small tasks within your classes in an easy and organized way. When your programs start to become very large, good commenting and formatting habits will help you stay organized. Knowing these tools will also help you read code written by other people, which is a great way to learn.
|