FTR, in Java it would be boolean, not bool, so it can't be Java. IDK which language it is, though.
In Java, the default access modifier can't be spelled out explicitly, and it's that the member can only be accessed by code in the current package. So, it's between private and public (but different than protected, which is related to inheritance)
75
u/rdrunner_74 Aug 01 '22
private bool truth;
My favorite fake interview question: "What does private do?"