Static methods are those methods which are known as a class level method. We call the static method with the name of class.
Example
Public Class1
{
Public static int sum (int x, int y)
{
Return x+y;
}
}
Calling of Static Method:
Response. Write (Class1.sum (45, 55));
Example
Public Class1
{
Public static int sum (int x, int y)
{
Return x+y;
}
}
Calling of Static Method:
Response. Write (Class1.sum (45, 55));
Comments
Post a Comment