HI,
I know this is a basic question but i need some depth details
Why i could not able create objects for the non static class in the static method?
Fo ex:
In this following code and getting "inaccessible due to its protection level" error ...
Please explain..
namespace dotnetfunda_ex1
{
public class ClassA
{
ClassA(int var)
{ }
public static void tm()
{ }
}
class Program
{
public static void Main(string[] args)
{
ClassA obj = new ClassA(1);
//obj.tm();
}
}
}
Manikandan Muthuraj
Thanks & Regards,
Manikandan Muthuraj
http://talkheredotnet.blogspot.com/