Skip to content

Instantly share code, notes, and snippets.

@keinix
Last active September 21, 2018 06:04
Show Gist options
  • Save keinix/b911403ecb63ea11968d25565ce79634 to your computer and use it in GitHub Desktop.
Save keinix/b911403ecb63ea11968d25565ce79634 to your computer and use it in GitHub Desktop.
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