Skip to main content
Journey Uncommon Logo
JourneyUncommon
mediumKotlinclass delegation bySingle-choice MCQ

A class implements two interfaces by two different delegates. What happens here?

interface A { fun who(): String } interface B { fun who(): String } class AImpl : A { override fun who() = "A" } class BImpl : B { override fun who() = "B" } class C : A by AImpl(), B by BImpl()