In Kotlin open
is the same as not final
in Java for classes and methods.
What does open
give me in the following class for the field marked as open
?
@MappedSuperclass
abstract class BaseEntity() : Persistable<Long> {
open var id: Long? = null
}
updated this is not duplicate of What is the difference between 'open' and 'public' in Kotlin?
I am interested in open
keyword for properties
updated
open
class can be inherited.
open
fun can be overridden
val
property is final
field in java
what about open
property?