Activity Forums Salesforce® Discussions 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.

  • [adinserter block='9']
  • 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.

Log In to reply.