-
-
Save 5AbhishekSaxena/5f093c3f56042ce1e23b2fded07979a5 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 { | |
// this can be injected through constructor as well and it would be constructor injection | |
var notification: Notification? = null | |
fun sendNotification(message: String) { | |
notification?.sendNotification(message) | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment