function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ 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