What is Method or Function?
1) Method or in other words we can also say that function is a collection of the statement rules embedded with its access specifier, return type and parameter having unique name resides in a class. A method or function can be Static or nonstatic Function.
2) If you required a code which required multiple time then you can simply put it in method and call it by method name so by using method repetition of code avoided.
3) There are simple methods, static methods parametrize methods in c#.
4) The method contains access modifier as first place after that any valid return type and method name which is parametrize or no parameters in it.
2) If you required a code which required multiple time then you can simply put it in method and call it by method name so by using method repetition of code avoided.
3) There are simple methods, static methods parametrize methods in c#.
4) The method contains access modifier as first place after that any valid return type and method name which is parametrize or no parameters in it.
Comments
Post a Comment