单项选择题
A.class House(name){def getname =“beijing”}B.class hous……
定义一个类,定义正确的是? ()
A.class House(name){def getname =“beijing”}
B.class house {name =“nanjing”}
C.class House {public var counter:String =“shanghai”}
D.class house (var name:String){private def getName =name}