• Welcome to the world's largest Chinese hacker forum

    Welcome to the world's largest Chinese hacker forum, our forum registration is open! You can now register for technical communication with us, this is a free and open to the world of the BBS, we founded the purpose for the study of network security, please don't release business of black/grey, or on the BBS posts, to seek help hacker if violations, we will permanently frozen your IP and account, thank you for your cooperation. Hacker attack and defense cracking or network Security

    business please click here: Creation Security  From CNHACKTEAM

Recommended Posts

重载是函数名相同但参数类型不同的函数(一个名字有两个函数)。

重载方法的规则

*方法名称必须相同。

*不同的参数列表(不同数量或类型或不同顺序的参数)

*方法的返回类型可以相同,也可以不同(通过强制转换)

理论:当方法名相同时,编译器会根据参数个数调用方法。

参数不匹配

Link to comment
Share on other sites