An inaccessible class. VS2010.
Posted
by Mishgun_
on Stack Overflow
See other posts from Stack Overflow
or by Mishgun_
Published on 2010-04-14T10:02:24Z
Indexed on
2010/04/14
10:03 UTC
Read the original article
Hit count: 269
I realy dont know what the problem is with VS2010. I created a class, and when I'm trying create an exemplar of the class I get an error: "Error xxx is inaccessible due to its protection level.
Example:
public class Person { Person(string name, int age) { this.name = name; this.age = age; } public string name; public int age;
}
class Program { static void Main(string[] args) {
Person ps = new Person("Jack", 19);
}
}
© Stack Overflow or respective owner