Guys, I have a simple but incomprehensible question. As far as I understand, static basically means that for every single instance of this class this method will be the same if we change it, it will change for every single instance of this class, also known as a class method, Well, if I have a class, which implements the toString () method with a specific format, say:
public String toString() { return "(" + x + "," + y + ")"; }
Why can't it be set as static? Since this format will be the same for every instance of this class ...?
source share