Sup guys, I have a simple, but bugging question.
As far as I understand, static
basically means, that for every single instance of that class, this method will be the same, if we change it, this will change for every single instance of that class, it's also known as Class Method. Well, if I have a class that implements toString ()
method witch a certain format, let's say:
public String toString() {
return "(" + x + "," + y + ")";
}
Why can't it be set as static? Since this format will be the same for every single instance of that class...?