Files
2022-03-17 10:49:16 +00:00

18 lines
430 B
Plaintext

abstract class A {
abstract override fun hashCode(): Int
abstract override fun equals(other: Any?): Boolean
}
interface I
class B : A(), I {
<selection><caret></selection>override fun equals(other: Any?): Boolean {
if (this === other) return true
if (javaClass != other?.javaClass) return false
return true
}
override fun hashCode(): Int {
return javaClass.hashCode()
}
}