Last active
September 21, 2018 06:04
-
-
Save keinix/b911403ecb63ea11968d25565ce79634 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 class Book implements Literature { | |
// variables and methods | |
@Override | |
public int getType() { | |
return Literature.TYPE_BOOK; | |
} | |
} | |
public class Magazine implements Literature{ | |
// variables and methods | |
@Override | |
public int getType() { | |
return Literature.TYPE_MAGAZINE; | |
} | |
} | |
public class Newspaper implements Literature { | |
// variables and methods | |
@Override | |
public int getType() { | |
return Literature.TYPE_NEWSPAPER; | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment