I understand the way the four access modifiers work inside classes, however you can also put them before the keyword class, like:
accessModifier class className{
accessModifier type var;
}
I previously understood access modifiers as the members' visibility, so, e.g., private would mean the variable will only be visible inside the class; but how does that work behind the class?
Also, in what situations should I put the access modifiers behind the class and why?