Skip to content

Instantly share code, notes, and snippets.

@5AbhishekSaxena
Created December 2, 2022 23:12
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save 5AbhishekSaxena/5f093c3f56042ce1e23b2fded07979a5 to your computer and use it in GitHub Desktop.
Save 5AbhishekSaxena/5f093c3f56042ce1e23b2fded07979a5 to your computer and use it in GitHub Desktop.
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