热线电话:13121318867

登录
2020-02-21 阅读量: 732
scala中的Trait关键字

train 相当于定义了一个接口 接口子类中必须重写

train cart {

def cat(x: String): Unit = {

}

def dot(age: Int): Unit = {

}

}

0.0000
4
关注作者
收藏
评论(0)

发表评论

暂无数据
推荐帖子