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