Pass the Data to Methods
Pass input and return output from methods.
We'll cover the following...
Methods are more powerful when they take input and return output. In this lesson, you’ll pass variables into methods and get results back.
Goal
You’ll aim to:
Use parameters and return types.
Pass values to methods.
Return results for use elsewhere. ...