Skip to content

Instantly share code, notes, and snippets.

@5AbhishekSaxena
Last active July 15, 2022 20:54
Embed
What would you like to do?
interface UserDataSource {
fun save(user: User)
}
class RemoteUserDataSource : UserDataSource {
override fun save(user: User) {
println("Calling save in remote data source.")
}
}
class FakeUserDataSource : UserDataSource {
override fun save(user: User) {
println("Calling save in fake data source.")
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment