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

class SomeClass {
  int a;
struct SomeStruct {
  int b; 
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").

Follow CodeGalaxy

Mobile Beta

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