Kizspy | Question: 25
(Choose 2 answers)
Choose multiple correct answers.
A. private access modifier should be used for a variable or method to only be accessed within the same class
B. public access modifier should be used for a variable or method that should be accessible from any class,regardless of the package
C. protected access modifier should be used for a variable or method that should only be accessed within the same class and subclasses, in the same package
D. default (no modifier) access modifier only allows access in the same class