Are there errors in the following code?

class A {
  int a;
public:
  static int GetA() { return a; }
};
Explanation
Static class members do not have access to non-static ones

Слідкуй за CodeGalaxy

Мобільний додаток Beta

Get it on Google Play
Зворотній Зв’язок
Cosmo
Зареєструйся Зараз
або Підпишись на майбутні тести