I want to know about the setter and getter. I know that it is a properties of declaring variable but some time I get confused. Presently I am using a sample of code that is below:

    public with sharing class hello
    {
           public String temp{set;get;} 
            public hello(){
                     temp = 'first' ;
                }
             public String gettemp(){
              return 'second' ;
            }
    }

So I want to know that when I use temp on VFP than what value will show on page..... and what is reason of that ...............
what is the difference of temp and gettemp .....
 
Thanks
Ashlekh Gera