H
Hatter
default access in class,
I declare a class like:
class ClassA
{
int getValue()
{
return 0;
}
}
then what is the type of method:getValue?
public?protected?or private?
I use ClassA.class.GetMethods() to get the method list of class ClassA,
but getValue was not in the list.
Can anyone tell me why??
I declare a class like:
class ClassA
{
int getValue()
{
return 0;
}
}
then what is the type of method:getValue?
public?protected?or private?
I use ClassA.class.GetMethods() to get the method list of class ClassA,
but getValue was not in the list.
Can anyone tell me why??