methods
i "stole" this code below from a website and i was wondering why the method ShowBools() is not static. What does it mean if a static method is a class method? can someone please explain?
class ABC
{
// Initialize the boolean with the default value of false.
boolean first;
// initialize the boolean with the value explicitly set to false.
boolean second =false;
// initialize the boolean with the value explicitly set to true.
boolean third =true;
void ShowBools()
{
//Print out the value of each of the three booleans
System.out.println("The value of first is " + first);
System.out.println("The value of second is " + second);
System.out.println("The value of third is " + third);
}
publicstaticvoid main(String args[])
{
//Create an instance of the class ABC
ABC abc =new ABC();
//Change the value of third to false.
abc.third =false;
//Show the three booleans on the screen with their respective values.
abc.ShowBools();
}
}

