S
Subramanian
Any specific reason of not giving acces to the static
members of a class, from the objects of the class.
Code Snippet:
Class a
{
public static int stInteger;
}
class Test
{
static void Main()
{
a obja =new a();
Console.WriteLine(obja.A);
}
}
members of a class, from the objects of the class.
Code Snippet:
Class a
{
public static int stInteger;
}
class Test
{
static void Main()
{
a obja =new a();
Console.WriteLine(obja.A);
}
}