day 29
today I continued study methods
What is methods types ?
1-Void
Returns void . Means has no value to return;
Typically we use it while printing or implement algorithms that doesn’t return any value.
2-Return Datatype
Returns value .
You can reuse the method in some operations , You can print the value of the method or assign it to a variable.

Comments
Post a Comment