The problem is that when i run, i get the constructor undefined error at line -->children.add(new MSS(counter++, this, id_start )); , which i am not able to find why??
can someone explain the reason?
piya rai wrote:
The problem is that when i run, i get the constructor undefined error at line -->children.add(new MSS(counter++, this, id_start )); , which i am not able to find why??
can someone explain the reason?
Jesper Young wrote:What does this have to do with the SCJP exam? I'm moving this to a more appropriate forum.
Note that there's a semi-colon in line 18 which should not be there.
Campbell Ritchie wrote:Jesper is correct; the semi-colon ought not to be there. The fact that an empty statement will compile doesn't mean it ought to be there.
Henry Wong wrote:
piya rai wrote:
The problem is that when i run, i get the constructor undefined error at line -->children.add(new MSS(counter++, this, id_start )); , which i am not able to find why??
can someone explain the reason?
Well, does the MSS class have a constructor that takes an int, an Network instance, and an int as the three parameters?
Henry
piya rai wrote:
Henry Wong wrote:
piya rai wrote:
The problem is that when i run, i get the constructor undefined error at line -->children.add(new MSS(counter++, this, id_start )); , which i am not able to find why??
can someone explain the reason?
Well, does the MSS class have a constructor that takes an int, an Network instance, and an int as the three parameters?
Henry
yes it does..
Henry Wong wrote:
piya rai wrote:
Henry Wong wrote:
piya rai wrote:
The problem is that when i run, i get the constructor undefined error at line -->children.add(new MSS(counter++, this, id_start )); , which i am not able to find why??
can someone explain the reason?
Well, does the MSS class have a constructor that takes an int, an Network instance, and an int as the three parameters?
Henry
yes it does..
Well, your compiler says otherwise. So... As many has already mentioned, show us the code. Or we really can't help you.
Henry