function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
Sfdc@SmithaSfdc@Smitha 

how to use ge tand set methods in salesforce with an example?

Hi

 

how to use get and set methods in salesforce with an example?Can anybody  Help me?

Laxman RaoLaxman Rao

Getter and setter methods are used to pass data from your visualforce page to your controller and vice versa.

 

For example you can refer this:

http://www.salesforce.com/us/developer/docs/pages/Content/pages_controller_methods.htm

 

 

http://www.forcetree.com/2009/07/getter-and-setter-methods-what-are-they.html