Hello,
I would like to declare a class atribute so I wrote something like this:
class Xpto{
private static int value;
}
However, once is private, I cant access it like Xpto.value nor a.value ("a" is a Xpto instance)
Declaring it protected I can access it through class and instances. Is there a way I can access it JUST through Class?
Thanks in advance!