January 2017
Intermediate to advanced
420 pages
9h 25m
English
When you define your class, the contained methods, properties, or fields can have various visibility levels. In Kotlin, there are four possible values:
If the parent class specifies that a given field is open for being redefined (overwritten), the derived class will be able to modify the visibility level. Here is an example:
open class Container { protected open val fieldA: String = "Some value" } class DerivedContainer : Container() { public override val fieldA: String ...Read now
Unlock full access