Created
April 3, 2019 05:51
-
-
Save gaplo917/ee3abbbfd5ae623c71a26461f316e7e8 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// 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