
public class selectClass {
public selectoption[] selectVal{get;set;}
public selectOptoin()
{
selectoption op1 = new selectoption('null','--|--');
selectoption op2 = new selectoption('first','jan');
selectoption op3 = new selectoption('second','feb');
selectoption op4 = new selectoption('third','march');
selectval = new selectoption[]{op1,op2,op3,op4};
}
}
Error: selectoptoin Compile Error: Constructor not defined: [selectOPtion].<Constructor>(String, String) at line 7 column 22
4 个回答