Write something about yourself
Answered Oct 17, 2018
Answer: A, B
A.The default modifier for a class is private.
The top-level of the type must set Public or Global for the modifier. So an only inner class can ignore to set, which default to private.
C is incorrect. Because aclassonly can have 1levels of inner class.
D is incorrect. Interface is atop level of type, that must set Public or Global for modifier. No inner interface so no default modifier for interface.
Answered Sep 08, 2019
This is the default, and means that the method or variable is accessible only within the Apex class in which it is defined. If you do not specify an access modifier, the method or variable is private.
Interface methods have no access modifiers. They are always global. For more information, seeInterfaces.
Answered Jan 04, 2019
This question is incorrect - the only correct answer here is B
Answered Sep 28, 2018
Forgot your password?