function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
Reddy RajithaReddy Rajitha 

how to write vfcode for this apex class

public class Employee {
    public string name;
    public decimal age;
    public decimal salary;
    public void setdata(){
        name='rani';
            age=20;
        salary=11000;
    }
    
}

 
Dejan Cvetkoski 9Dejan Cvetkoski 9
<apex:page controller="Employee " >
      <apex:outputField value={!name} />
      <apex:outputField value={!age} />
      <apex:outputField value={!salary} />
</apex:page>