一个类定义多个重载方法,参数分别是int ,char,和double,然后将double x = 2,传递进去,会选择哪个方法?

选择参数类型为double的方法。

posted @ 2020-12-15 00:23  咔啡  阅读(208)  评论(0编辑  收藏  举报