I don't understand this part in Oracle docs?

前端 未结 4 1237
太阳男子
太阳男子 2021-01-23 10:41

Hi I am Ankur and have been coding with java for few years now..I have read Head first Java The Complete Reference by Herbert Schildt earlier and recently I came across a major

4条回答
  •  清歌不尽
    2021-01-23 11:21

    No argument constructor is automatically generated by the compiler unless you define another constructor.

    So in your case with the student class, no argument constructor was automatically inserted because you have not provided any other constructor.

提交回复
热议问题