+ 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