Java Error: The constructor is undefined

前端 未结 9 1247
庸人自扰
庸人自扰 2020-11-29 13:31

In Java, Why am I getting this error:

Error: The constructor WeightIn() is undefined

Java Code:

public class WeightIn{
  pr         


        
9条回答
  •  情话喂你
    2020-11-29 14:01

    WeightIn weight1 = new WeightIn();  
    

    The default constructor is not defined. Please define it like this:-

    public weightIn()
        {
        }
    

提交回复
热议问题