Scala Constructor Arguments and what difference does it make
Reading Time: 3 minutes Introduction to Scala constructors Scala constructors might feel a little unusual especially if we come from a more verbose language. Constructors in Scala are of 2 types: Primary Constructor Auxiliary Constructor This is how we declare a primary constructor in Scala: In this blog, we will see different ways to pass arguments in the primary constructor and how it affects their visibility. Passing arguments in Continue Reading