- 博客(1)
- 收藏
- 关注
原创 scala 中apply方法的理解
1. new ApplyTest2.new ApplyTest()总结 :new 的只走 class 类的代码块和 class中的apply方法3 .ApplyTest4 .ApplyTest()总结: ApplyTest() 和ApplyTest 有括号的走class 中的apply方法,没有括号的不走class 中定义的apply方法
2017-07-10 17:11:21 905
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人