摘要:
10.1 隐式函数 1)隐式转换可以在不需改任何代码的情况下,扩展某个类的功能。 2)案例实操 需求:通过隐式转化为Int类型增加方法。 package com.yuange.scala.day06 class MyRichInt(val self: Int){ def myMax(i: Int): 阅读全文
posted @ 2021-05-25 17:02
LZ名約山炮
阅读(67)
评论(0)
推荐(0)
2021年5月25日 #
2021年5月24日 #
2021年5月22日 #
2021年5月21日 #
2021年5月19日 #
2021年5月18日 #