-
-
Save 5AbhishekSaxena/b6326d9f34e58c27781eeb46d4a4132c 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
class NotificationService { | |
fun sendNotification(message: String) { | |
val emailNotification = EmailNotification() // <- here is the dependency | |
emailNotification.sendNotification(message) | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment