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

Следи за CodeGalaxy

Мобильное приложение Beta

Get it on Google Play
Обратная Связь
Продолжайте изучать
тесты по C++
Cosmo
Зарегистрируйся сейчас
или Подпишись на будущие тесты