Functions are "self contained" modules of code that accomplish a specific task. Functions usually "take in" data, process it, and "return" a result. Once a function is written, it can be used over and over and over again. Functions can be "called" from the inside of other functions.
Youtube Channel: https://www.youtube.com/c/ProGrammerTVFraceCMarteja?sub_confirmation=1
Facebook Page: https://www.facebook.com/programmertv2021
Github public repository: https://github.com/programmertv/csharp-tutorial.git
Branch name: Episode008
View code here using your browser: https://github.com/programmertv/csharp-tutorial/blob/Episode008/Episode008/Episode008/Program.cs
- - Contents of this video - -
0:00 - Intro
0:30 - Discussion
2:10 - Project Creation
2:25 - Function (Void)
8:05 - Function (params keyword)
9:29 - Function (optional parameter and parameter with default value)
12:59 - Function (single statement)
13:22 - Function with Return Value
19:35 - Function (Void with Return keyword)
20:15 - Parameter with REF keyword
23:00 - Parameter with OUT keyword
26:25 - Recursive Function
30:40 - Outro