What is the equivalent of this
when calling a static method in Apex, besides the class name?
For instance
class A {
public static void foo(){
this.bar(); //what to use here, instead of this.bar() or A.bar()
}
private static void bar(){
//some stuff
}
}
Best Answer
You would simply omit the 'this' and call it as follows: