Used only as the return type for a method to specify that the method does not return a value.
void is not allowed in a method's parameter list.
An example method that takes no parameters and returns no value is declared as follows:
void MyMethod()
{
// ...
}