Created
August 7, 2018 16:05
-
-
Save Amberlamps/edfcb35c37e26c65abc4217e4e93850c 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
interface AbstractionLayer { | |
createUser(); | |
} | |
class MongoDbAdapter implements AbstractionLayer { | |
createUser() { | |
// Mongodb specific code | |
} | |
} | |
class CassandraAdapeter implements AbstractionLayer { | |
createUser() { | |
// Cassandra specific code | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment