- private void giveAvailableSkills()+ public void giveAvailableSkills()
PS: If i change this... i will not have problem ... because giveAvailableSkills(); is called from much files ...
why changed from private to public ... so can anyone tell me diference.... and some times i see...
private static void name(); why this and not private void name();
there are many keywords which controls the member access to a class/field/method
you dont need to make the method visible to all if you are not gona use it out of the own class where is defined. So you can declare it private.
But if you need to use it in a external class, you can add other modifierds, as protected, public or no modifier, each one with a different access level
Refering to static, the static keyword is used to declare a field/method as common for all objects of that class.
Is logical that if you want to make a static reference, you need to declare it static