Return Parameters in Methods
In this lesson, we will discuss return parameters in methods.
Return parameters
Return parameters are ones that the method will send back to the class from where it was called. To understand, let’s look at the diagram below which shows a function that changes a String value and returns the new modified String.
Get hands-on with 1300+ tech skills courses.