Activity Forums Salesforce® Discussions Whats is global is in salesforce?

  • MOHIT

    Member
    September 10, 2020 at 1:53 PM

    Apex allows you to use the private, protected, public, and global access modifiers when defining methods and variables.

    While triggers and anonymous blocks can also use these access modifiers, they are not as useful in smaller portions of Apex. For example, declaring a method as global in an anonymous block does not enable you to call it from outside of that code.

    • This reply was modified 5 years, 11 months ago by  MOHIT.
  • [adinserter block='9']
  • Aditya

    Member
    September 10, 2020 at 8:04 PM

    Global is basically an access modifiers which is used to define the methods and variables

  • Ayush

    Member
    September 14, 2020 at 1:59 PM

Log In to reply.

Popular Salesforce Blogs

Popular Salesforce Videos

Salesforce Interview Questions and Answers - For Freshers and Experienced Candidates

Video in

Learn most important Salesforce Interview Questions and Answers, asked at every interview. These Interview questions will be useful to all entry-level candidates, beginners, interns, and…