Activity Forums Salesforce Discussions What are Getter and Setter methods in Salesforce?

  • What are Getter and Setter methods in Salesforce?

     Pooja updated 6 months, 1 week ago 3 Members · 3 Posts
  • Marziya

    Member
    May 22, 2020 at 1:51 pm

    What are Getter and Setter methods in Salesforce?

  • Shweta

    Member
    May 22, 2020 at 2:07 pm

    getter method: This method will return a value to a visualforce page whenever a name variable is called.
    Setter method: This will take the value from the visualforce page and stores to the Apex variable name.

  • Pooja

    Member
    May 22, 2020 at 3:27 pm

    getter method will return a value to a visualforce page whenever a name variable is called.
    Setter method will take the value from the visualforce page and stores to the Apex variable name.

Viewing 1 - 3 of 3 posts

Log In to reply.

Popular Salesforce Blogs

Popular Salesforce Videos