constructor not accepting my information

前端 未结 5 1835
长发绾君心
长发绾君心 2021-01-28 08:32

so the constuctor is saying ) expected, error not a statement and ; expected

    Person num1, num2, num3;
    num1=new Person(Allison, 6600 Crescent Ave, 32, 902         


        
5条回答
  •  醉梦人生
    2021-01-28 09:24

    you are calling construtor that in not exist for your first argument you have defined string so pass in double quote while calling construtor

提交回复
热议问题