It follows a series of commands and when it is finished, it returns control to the part of the program that called it. This type of method is often called a procedure-type method. Methods that do return values are generally referred to as function-type methods. We will examine those next. But just before we do that, let's examine why we should use methods in the first place.
Methods make the software business a team development environment.
It also tends to make the software more stable. The rest of the program remains untouched and continues to be relatively bug-free. Our example is very simple, of course. But imagine if it was a complete information system for an operation like one of the big building centres. Various methods can be assigned to different programmers for creation and maintenance.