c# using static methods code example
Example 1: c# static meaning
In general, static means “associated with the class, not an instance”.
// Search c# static review for more detail
Example 2: static c#
(static) >> means that the method belongs to the Program class
and not an 'object' of the Program class.
Example 3: static methods c#
class Program
{
public static void withoutObj()
{
Console.WriteLine("Hello");
}
static void Main()
{
Program. withoutObj();
Console.ReadKey();
}
}