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
  • 24,791
  • 31
  • 112
  • 278

0 Answers0