Created
August 20, 2019 14:55
-
-
Save amitkma/0736be925b5ca2d4745515b6dcd6fe77 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
public interface BookFinder { | |
List findAll(); | |
} | |
class Library… | |
private BookFinder finder; | |
public Library() { | |
finder = new(RemoteBookFinder("https://oxfordlibrary.com/books"); // Can be a local database implementation as well. | |
} | |
.... | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment