@Acer Tomato (){this(121)}不知道你指的是不是这个意思

Follow

@miaomaiohome

java沒有這個語法好像 看不懂這個表達式意思

@Acer java是不能设置默认参数, 起码得两个构造函数。this(121)这一行调用自己的带参数构造函数。this是自己这个类的意思

Sign in to participate in the conversation
Qoto Mastodon

QOTO: Question Others to Teach Ourselves
An inclusive, Academic Freedom, instance
All cultures welcome.
Hate speech and harassment strictly forbidden.