Skip to main content
Rishav Kumar 님이 #Ask An Expert에 질문했습니다
can anyone tell me where i am doing the mistake in this code. Everytime i am getting sameError

 

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개
0/9000