and tags in your HTML document. That's it!
How to call non-static methods from static methods in apex salesforce
Hi,
Static methods and non static methods can be defined in the same class in apex
You can call non static methods from static methods by first instantiating a class object
and then invoking the object methods
public with sharing class Staticandnonstatic{
public static void testitout(){
Staticandnonstatic st = new Staticandnonstatic();
st.showmessage100();
}
public void showmessage100(){
system.debug('virat hit a lovely century yesterday night');
}
}
Thanks
Static methods and non static methods can be defined in the same class in apex
You can call non static methods from static methods by first instantiating a class object
and then invoking the object methods
public with sharing class Staticandnonstatic{
public static void testitout(){
Staticandnonstatic st = new Staticandnonstatic();
st.showmessage100();
}
public void showmessage100(){
system.debug('virat hit a lovely century yesterday night');
}
}
Thanks