Which of the following statements accurately describe the use of access modifiers within a class definition?

  1. They can be applied to both data & methods

  2. They must precede a class's data variables or methods

  3. They can follow a class's data variables or methods

  4. They can appear in any order

  5. They must be applied to data variables first and then to methods


Correct Option: A,B,D

Find more quizzes: