Skip to content

Instantly share code, notes, and snippets.

@gaplo917
Created April 3, 2019 05:51
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save gaplo917/ee3abbbfd5ae623c71a26461f316e7e8 to your computer and use it in GitHub Desktop.
Save gaplo917/ee3abbbfd5ae623c71a26461f316e7e8 to your computer and use it in GitHub Desktop.
// Kotlin
open class AAA {
fun honey(){}
}
interface BBB {
fun empire(){}
}
abstract class CCC {
fun bleed() {}
}
// can distinguish class & abstract class
class D1: AAA {
constructor(){}
}
class D2: CCC {
constructor(){}
}
// can distinguish class & interface
class D3: AAA, BBB {
constructor(){}
}
// can distinguish abstract class & interface
class D4: CCC, BBB {
constructor(){}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment