Skip to content

Instantly share code, notes, and snippets.

@fermopili
Created March 19, 2017 12:17
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save fermopili/e2d9016f9f3085ec1d1129504509fedb to your computer and use it in GitHub Desktop.
Save fermopili/e2d9016f9f3085ec1d1129504509fedb to your computer and use it in GitHub Desktop.
com.javarush.task.task13.task1301
/*
Пиво
*/
public class Solution {
public static void main(String[] args) throws Exception {
}
public interface Drink {
void askMore(String message);
void sayThankYou();
boolean isReadyToGoHome();
}
public interface Alcohol extends Drink {
boolean READY_TO_GO_HOME = false;
void sleepOnTheFloor();
}
public static class Beer implements Alcohol {
public void sleepOnTheFloor(){};
public void askMore(String message){};
public void sayThankYou(){};
public boolean isReadyToGoHome(){return READY_TO_GO_HOME;};
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment