public & private is not a type of variable..
it keywords to specify access levels for member variables.
See This
And Your Answer is (access levels for member variables):
Private
Let test this example...
class Test
{
String Test1;
public string Test2;
protected string Test3;
private string Test4;
}
class TestAccessLavel
{
static void Main()
{
Test e = new Test();
String Test2 = e.Test2;
}
}
Create one class Test and create variable (see above)
Now in other class main() create object of Test and try to acess Variable..
If Test1 & Test2 is acessable - public
Test1 & Test3 is acessable - protected
Test1 & Test4 is acessable - private
Thanks