Kotlin, Android App Development.
primaryButtonDelegator.onButtonClick() // Output: Primary Button Clicked secondaryButtonDelegator.onButtonClick() // Output: Secondary Button Clicked tertiaryButtonDelegator.onButtonClick() // Output: Tertiary Button Clicked } In this example, instead of inheriting from a common Button class, each