Given:
2. public class Main { 3. int count; 4. int getCount() { return count; } 5. void setCount(int s) { 6. assert(s > 30000); 7. count = s; 8. } }
Which are true? (Choose all that apply.)
E and F are correct.
F is correct because line 6 currently uses the assert mechanism to validate a non-private method's argument, which is not considered appropriate.
A is incorrect because the code is legal.
B is incorrect because count is not private.
C and D are incorrect because the assert mechanism is mainly independent of the OO concepts of cohesion and encapsulation.