What access modifiers will be set by default for the a and b variables?

class SomeClass {
  int a;
};
struct SomeStruct {
  int b; 
};
Explanation
Class elements have private access modifiers by default, but those of a struct have public access modifiers by default. (Section 11, p. 179 of "International standard ISO / IEC 14882").

Следи за CodeGalaxy

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

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