O'Reilly logo
  • Maurizio Pietrantuono thinks this is interesting:

Run the preceding code and it will print fieldA twice in the output; the first entry will come from the parent class and will be "Some Value", and the latter will come from the derived class and will read "Something else".

From

Cover of Programming Kotlin

Note

????