Activity Forums Salesforce® Discussions What Is Property In Salesforce Apex? Explain With Advantages? Reply To: What Is Property In Salesforce Apex? Explain With Advantages?

  • shariq

    Member
    September 20, 2018 at 10:52 pm

    Hi,

    Example -

    <apex:page controller="simplegetset">
    <apex:form>
    <apex:outputlabel value="Enter your name here"/>
    <apex:inputtext value="{!userinput}"/>
    </apex:form>
    </apex:page>

    The Apex code for this page would be...

    public class simplegetset
    {
    public String userinput{get; set;}
    }