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 4 years, 3 months ago by  MOHIT.
  • 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