Created
March 19, 2017 12:17
-
-
Save fermopili/e2d9016f9f3085ec1d1129504509fedb to your computer and use it in GitHub Desktop.
com.javarush.task.task13.task1301
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 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