User Program Communication
Object Oriented Programming
Searching for: Function Declaration in C#
A method is a block of code that can be called from another location in the program or class. It is used to reduce the repetition of multiple lines of code. The return statement concludes the execution of the block of code, returning something of type provided in the method header, or null (void method). Within a class, these are known as 'instance methods'. An instance method is tied to a class instance.
To define a type/structure to store several data items and variables.