Keywords
Apex provides the keywords final, instanceof, super, this, transient, with sharing and without sharing.
-
Use the with sharing, without sharing, and inherited sharing Keywords
Use the
with sharingorwithout sharingkeywords on a class to specify whether sharing rules are enforced. Use theinherited sharingkeyword on a class to run the class in the sharing mode of the calling class. The default sharing mode iswith sharing.
See Also