Z
z_learning_tester
Hello,
I am new to C# and have a quick question.
Any replies much appreciated ;-)
It is regarding static methods...
Are they public by default?
I mean it seems like for them to be usable, they have to be public right?
EG. Below you can't call the method by saying Point.ObjectCount() unless
ObjectCount is public right? So this call would fail ?
class Point
{ ...
static int ObjectCount ()
{...
}
}
Thanks again-
Jeff
I am new to C# and have a quick question.
Any replies much appreciated ;-)
It is regarding static methods...
Are they public by default?
I mean it seems like for them to be usable, they have to be public right?
EG. Below you can't call the method by saying Point.ObjectCount() unless
ObjectCount is public right? So this call would fail ?
class Point
{ ...
static int ObjectCount ()
{...
}
}
Thanks again-
Jeff