Skip to main content
sandeep reddy a posé une question dans #Apex
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

 
1 réponse