You need to sign in to do that
Don't have an account?

Get and Set Methods
Hello All,
Could someone explain the differnece of using the Get and Set methods in Apex/Visualforce page developement?
I am always confused on how to use these methods. It would be great if someone can give an example to me!
Thanks a lot in advance!
Regards,
Raghu
Could someone explain the differnece of using the Get and Set methods in Apex/Visualforce page developement?
I am always confused on how to use these methods. It would be great if someone can give an example to me!
Thanks a lot in advance!
Regards,
Raghu
http://www.forcetree.com/2009/07/getter-and-setter-methods-what-are-they.html
All Answers
http://www.forcetree.com/2009/07/getter-and-setter-methods-what-are-they.html
Just go through above link.In order to give you a easy and understandable way
Get:it will take value from controller and passed it to VF page.
whereas Set:It willtake value from the VF page and use it in the Controller.
Ex:inputfield present in VF page, if we type something and we can use it in controller and do some business logic over there