What is the difference between a private var constructor parameter and a constructor parameter without val/var? Are they same in terms of scope/visibility?
Ex:
as a supplement, if your class is a case class, all of the constructor parameters will be automatically public fields.
The compiler will complain about the private keyword if it exists, and for the parameters without val/var, no matter they are used or not in any defs, there will be public fields generated for them.