+ Start a Discussion
Chitral ChaddaChitral Chadda 

What is the difference between static , public and private members of a class,?

 What is the difference  between static , public and private members of a class,? when we invoke class from trigger? Can anyone pls explain this with the help of an example.
when we invoke class with (static , public, private member) from trigger
PratikPratik (Salesforce Developers) 
Hi Chitral,

You can find the access modifiers and their details :
https://www.salesforce.com/us/developer/docs/apexcode/Content/apex_classes_access_modifiers.htm

Trigger runs in System mode, but still it will respect your class modifiers as they are mentioned. You can refer to above link for example too.

Thanks,
Pratik
Hargobind_SinghHargobind_Singh
More info on access modifiers: https://www.salesforce.com/us/developer/docs/apexcode/Content/apex_classes_access_modifiers.htm