What is the difference between a class and a type in Scala (and Java)?
When you say “type” I’m going to assume you mean static type mostly. But I’ll talk about dynamic types shortly. A static type is a property of a portion of a program that can be statically proven (static means “without running it”). In a statically typed language, every expression has a type whether you write … Read more