A void return type means that there is nothing returned. A function with a return type of "void" would do its processing and then either just issue a "return;" statement, or fall out of the bottom of the function and return to where it was called from.
int methodName() is expecting to return an integer value. double methodName() is expecting to return a double. void methodName() is not expecting to, nor will it let you, return anything. Say you have a method that you want to print a value to the screen, or print out a record, you could use a void method with no return because it is all being done within that method. If you are using another method to do some action and are passing it a value from this method, you have to show the return type as part of your method( int, double, String, etc ). I hope this has helped and not confused.
Joined: Dec 20, 2000
Yup that helped alot. Thanks for the replies. For some reason it is usually a lot easier to understand what other "real" people have to say on subjects rahter than to try and figure out what some books have to say about it when your confused. Thanks