N
nicol
Hi all
I think I can not understand the exact usage of static
using System;
namespace ConsoleApplication119
{
class Program
{
static void Main(string[] args)
{
// student p =new student ();
}
}
static class student
{
public static student() // error+++++
{
Console.WriteLine(" parent class");
}
}
static class me : student // error****************
{
}
}
Error 1 Static classes must derive from object.
Error 2 access modifiers are not allowed on static constructors
Thanks . . .
I think I can not understand the exact usage of static
using System;
namespace ConsoleApplication119
{
class Program
{
static void Main(string[] args)
{
// student p =new student ();
}
}
static class student
{
public static student() // error+++++
{
Console.WriteLine(" parent class");
}
}
static class me : student // error****************
{
}
}
Error 1 Static classes must derive from object.
Error 2 access modifiers are not allowed on static constructors
Thanks . . .