AtomicScala / atomic-scala-corrections

Find out about or report corrections for the book "Atomic Scala"
http://www.atomicscala.com
6 stars 2 forks source link

Pg148 - Method Signature and Enclosing Class #46

Open sidnt opened 8 years ago

sidnt commented 8 years ago

Pg148 - last two sentences say:

"A method signature also includes information about the enclosing class. Thus, the overloaded f methods in Overloading1 don't clash with the f methods in Overloading2."

I feel the explanation for not clashing comes from namespace separation, considering that a method signature, as given in the same para

"consists of the name, argument list and return type."

For users (vs. compiler) of the language, I don't see how a method signature also includes information about the enclosing class.