2020-02-21
阅读量:
732
scala中的Trait关键字
train 相当于定义了一个接口 接口子类中必须重写
train cart {
def cat(x: String): Unit = {
}
def dot(age: Int): Unit = {
}
}






评论(0)


暂无数据
推荐帖子
0条评论
1条评论
0条评论