1

As far as I could understand from this question the final keyword is to prevent overriding the member. I wrote the following:

object JsonSupport{
  final val someChar = '"'
}

It compiles, but it seems nonsensical to me. We cannot extend object. So what does that mean?

St.Antario
  • 26,175
  • 41
  • 130
  • 318

0 Answers0