Skip to main content
Engineering LibreTexts

14: Value Methods

  • Page ID
    15248
  • Some of the methods we have used, like the Math methods, return values. But all the methods we have written so far have been void; that is, they don’t return values. In this chapter, we’ll write methods that return values, which we call value methods.