Function In C# .net
Why Use Function?
A function Is self Contained block or Sub program of onre or more statements that invoked a special tasks when bcalled or invoked.
we can categorises the function in twon categories.
Pre-Defined Function: The pre-defined Function can be used by including the appropriate name space
e.g
console.writeline();
console.readline();
2. User Defined Function: the user defined function is used by User
for e.g: main();
main function is user defined function .
becayse it is created by user.
why use we function?
there are only two Purposes for creating the function
1). if we want to perform a task respectively then it is not necesary to we re-write the particular block of the perform.
Comments
Post a Comment