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.

  • 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.

Popular Salesforce Blogs

Popular Salesforce Videos