MCQ Practice Single Best Answer Topic: Elements of Accounting

Q Which of the following keywords are used to control access to a class member?

Question ID
#24252
Subchapter
Elements of Accounting
Action
Choose one option below

Choose Your Answer

Click an option to check whether your answer is correct.

  • A default, protected, public
  • B abstract, interface
Correct Answer: A

Explanation

Which of the following keywords are used to control access to a class member?

  • default → ✔ (no keyword → package-private access)

  • abstract → ❌ (used for abstract methods/classes, not access control)

  • protected → ✔

  • interface → ❌ (not an access modifier, but a type definition)

  • public → ✔

✅ Correct answers: default, protected, public

Share This Question

Share this MCQ with your friends or study group.