Questions-PracticeExam1-TrueFalse-Spring08
What does it mean for a method to "return something upon completion"? In other words, how do "void" methods, which can print something upon completion, not "return something upon completion"?
- Returning and printing are two different things. Printing is some action being performed (basic theoretical description of a method) while returning has more to do with providing some result that can later be used by other methods. Take for instance, take two numbers 1 and 9. I can perform an addition operation in some method and print out the result 10, but if I do not return this value 10, I cannot try to use it in another method. Dawn Finney.
I don't get the method overloading question. I know that method overloading is when different methods have the same name, so the answer is false. But what would make it true?
Link to this Page