I can't seem to get a static integer in one class to be incremented in the constructor of another class. Is it legal to do this, or am I just doing something syntactically wrong?
the constructor looks like this:
classname() {classname::variablename++;}
would that be correct? Yes the static integer is public