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

Atom "Case Classes", exercise 4, use of "new" #59

Open waij opened 7 years ago

waij commented 7 years ago

In atom Case Classes, exercise 4, you use new: val c = new Dimension(5,7). It runs, but it does not show what you are teaching, which is that you do not need to use new.