【发布时间】:2014-09-07 04:20:34
【问题描述】:
比如说我有
class foo{
def bar = 7
}
class qaz{
//Here I want to have something like: val foobar = bar
//What I don't want to have is val foobar = (new foo).bar
}
我怎样才能做到这一点?
【问题讨论】:
标签: function class scala import