Final by default

Java classes can be declared with final keyword, which prohibits other classes from inheriting from that class. Kotlin doesn't have this modifier, because all classes are implicitly final in Kotlin.

If you want to make your class extendable, that is, make it possible for other classes to inherit from your class, you have to explicitly mark it with the open keyword.

..................Content has been hidden....................

You can't read the all page of ebook, please click here login for view all page.
Reset
18.189.180.43