Stan,
Assuming this is a general question, the short answer is to promote code reuse. You write the code in a single method and you can call that method from other places in your code.
It also helps to make your code cleaner, easier to read, and easier to maintain.
Thearon
|