
답변 5개
Hi,
Get (getter) method is used to pass value from controller to VF page while set (setter) is used to set the value back to controller variable. Above two methods are same and will return same results. Only their style of coding is different.But if you modify getter setter method with below code then it will change the result.For example name is 'John' public String name { get { return name + 'Get Value';} set { name = value +' Set Value';}In above code getter result will be "John Get Value' and Setter result will be "John Set Value" Please mark it Solved if it has resolved your query.Thanks,Mayank