Advertisement
Guest User

Untitled

a guest
Jun 19th, 2019
61
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.72 KB | None | 0 0
  1. public abstract without sharing MyUnsharingClass {
  2. // Some methods...
  3. }
  4.  
  5. public SomeClass extends MyUnsharingClass {
  6. // Some methods...
  7. }
  8.  
  9. public virtual inherited sharing MyInheritingClass {
  10. public void doSomething() {
  11. // Some code...
  12. }
  13. }
  14.  
  15. public virtual without sharing AnotherClass extends MyInheritingClass {
  16. // This class might be empty for all I care right now.
  17. }
  18.  
  19. public virtual inherited sharing MyInheritingClass2 {
  20. public virtual void doSomething() {
  21. // Some code...
  22. }
  23. }
  24.  
  25. public virtual without sharing AnotherClass extends MyInheritingClass2 {
  26. public override void doSomething() {
  27. super.doSomething();
  28. }
  29. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement