+ 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