Returning Values from a Method

Returning Values from a Method

Methods can return values of any data type. These values can be used for calculations or obtaining data that the method has calculated.  In a real life scenario, imagine that…