Does this code contain an error?

class A {
  static int a;
public:
  static int GetA() { return this->a; }
};

int A::a = 0;
Explanation
"this" is not defined for static functions of the class

Follow CodeGalaxy

Mobile Beta

Get it on Google Play
Send Feedback
Cosmo
Sign Up Now
or Subscribe for future quizzes