Let's say I have some class:
public abstract without sharing MyUnsharingClass {
// Some methods...
}
which is extended by
public SomeClass extends MyUnsharingClass {
// Some methods...
}
Would an instance of SomeClass be without sharing?
Or, let's say I have:
public virtual inherited sharing MyInheritingClass {
public void doSomething() {
// Some code...
}
}
And i have
public virtual without sharing AnotherClass extends MyInheritingClass {
// This class might be empty for all I care right now.
}
Would invoking doSomething() on an instance of AnotherClass be with or without sharing?
Or would this be any different?
public virtual inherited sharing MyInheritingClass2 {
public virtual void doSomething() {
// Some code...
}
}
And i have
public virtual without sharing AnotherClass extends MyInheritingClass2 {
public override void doSomething() {
super.doSomething();
}
}