constructor not accepting my information

前端 未结 5 1851
长发绾君心
长发绾君心 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:22

    Because strings are always used within the double quotes . put your arguments which are strings in the double quotes.

提交回复
热议问题