adspace


What is the difference between public and global class in apex?

Answer Posted / Om Prakash

"In Apex (a programming language used by Salesforce), both public and global classes are accessible from anywhere. However, the main difference lies in visibility within the code itself:n- A global class can contain static variables and methods that are shared across all instances of the class.n- A public class can only contain instance variables and methods specific to each instance."

Is This Answer Correct ?    0 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is workflow rule and workflow actions? : salesforce workflows and approval process

574


What were you doing before sfdc development?

522