Kotlin Oop 1
Kotlin Oop 1
Kotlin Oop 1
programming in Kotlin
Feels the same
internal
public, private, /*package-private*/
explicit: non-final
final, open, abstract
A module
• overrides a member in a
final
superclass or interface
open • must be overridden (can’t
abstract have an implementation)
override • cannot be overridden
• can be overridden
?
? Find the correspondence between
modifiers and their meaning:
public public
protected protected
class MyClass {
internal fun foo() {}
}
File structure:
package org.company.store