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
sandeep reddy 37sandeep reddy 37 

constructor with parameter invoked in vf page

I have class with parameterised constractor
public class main{
public string head;
public string industry;
publuc list<account> acc;
public mail(string nam,string ind){
this.head=nam;
this.industry=ind;
acc=new list<account>();

}
public void dodml(){
account a=new account();
a.name=head;
a.industry=industry;
acc.add(a);
insert acc;
}

so please tell me 
how to call this class in vf page