def hello(name: String = "world") {
println("hello, "+name)
}
Then this would fail to compile:
hello
and this would compile and run well:
hello()
def hello(name: String = "world") {
println("hello, "+name)
}
Then this would fail to compile:
hello
and this would compile and run well:
hello()