gpt4 book ai didi

java - 为什么区分方法时不考虑返回类型?

转载 作者:搜寻专家 更新时间:2023-10-31 08:16:08 24 4
gpt4 key购买 nike

<分区>

Possible Duplicate:
Java - why no return type based method overloading?

The compiler does not consider return type when differentiating methods, so you cannot declare two methods with the same signature even if they have a different return type.
Java Tutorial

这是为什么?

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com