- Back to Home »
- C#.NET »
- C#.NET Simple Method
Posted by :
Sudhir Chekuri
Thursday, 31 December 2015
Simple method is a method that doesn't have any arguments and return type.
Syntax
Access specifier return type methodname( )
Example
public void add()
{
Console.WriteLine("addition");
}
Syntax
Access specifier return type methodname( )
Example
public void add()
{
Console.WriteLine("addition");
}