- 链接地址:https://blog.csdn.net/love284969214/article/details/82757579
- 链接标题:Scala this 关键字_scala that-CSDN博客
- 所属网站:blog.csdn.net
- 被收藏次数:401
文章浏览阅读6k次。在scala中,this是一个关键字,用于引用当前对象。可以使用this关键字调用实例变量,方法,构造函数。Scala this示例在以下示例中,这用于调用实例变量和主要构造方法。class ThisExample{ var id:Int = 0 var name: String = "" def this(id:Int, name:Strin..._scala that
版权声明:本文发布于特牛网址导航 内容均来源于互联网 如有侵权联系删除
标签:scala that