Why every class in kotlin by default "final"?
b
Why every class in kotlin by default "final"?
f
Effective Java Item 17: Design and document for inheritance or else prohibit it.
โž• 9
only open when it really needed ๐Ÿ˜‰
s
You could ask yourself: Why every class in java by default โ€œopenโ€? (The answer is, as Feng Dai pointed out, that Kotlin picks the safer option as a default.)
๐Ÿ’ฏ 3
m
โ˜๏ธ yeah