I'm having a difficult time understanding why varone, vartwo, and varthree are getting "not found" errors: "not found: value "
// The following is being added to a list of type Foo
Foo(
varone = "stringvalue",
vartwo = "stringvalue",
varthree = true
)
I'm defining Foo as:
class Foo(varone : String, vartwo : String, varthree : Boolean)
{
}
I thought in Scala would take my class parameters and make fields of them?
I'm coming from a C++ background and assignments in variable constructors seem strange, but that's what the example I'm following is hinting I do. I might just revert to giving Foo a constructor and making my assignments there, but I'd like to understand this way too.