下列MyDate類構(gòu)造方法聲明有什么錯誤? public MyDate(intyear,int month,int day=1)
Java不支持在方法聲明時為參數(shù)指定默認值。
以下方法有什么錯誤?為什么?