Loading

08 2018 档案

摘要:首先 自己写了个小测试,代码如下 输出结果如下: TestClass constructor str now isvaluenum now is0TestClass constructor testClass now isTestClass@2503dbd3;num:0TestClass const 阅读全文
posted @ 2018-08-31 10:21 ichar 阅读(12457) 评论(2) 推荐(0)
摘要:重载不能已返回值为判断,只能已参数类型和参数个数以及方法名来判断,举个栗子/ void fun(int i){} 和 int fun(int i){} 是会报错的,因为 int result = fun(1); 可以判断调用int fun函数,但 直接调用fun不接受返回值类型,就不知道去调用那个一 阅读全文
posted @ 2018-08-23 14:48 ichar 阅读(168) 评论(0) 推荐(0)