Labels

Tuesday, March 31, 2009

Static Class & Construtor Myth

Static Class & Construtor Myth

 

Static class cannot have instance constructors.

A static member cannot be marked as override, virtual, or abstract.

 

 

static class Testlab

    {

        public Testlab()  // Error

        { }

 

        public static string myMehtod()

        {          

            return "";

        }

    }

 

 

 

 

 

 

 

More details are pemding … Will update shortly…

 

Regards,

Arun Manglick

 

 

 

No comments:

Post a Comment