2013-06-04 1 views

답변

13
class MyClass(a: Int, b: String) { 
    // this is the constructor right here 
    println("Hi, i'm the constructor") 

    def imAMethod = 1 

    println("Hi, I'm also part of the constructor down here, the whole class body is") 
} 
관련 문제