How to recognize taste interface? How should i recognie the taste interface?
package com.codegym.task.task14.task1410;
/*
Wine tasting
*/
public class Solution {
public static void main(String[] args) {
getDeliciousDrink().taste();
System.out.println(getWine().getCelebrationName());
System.out.println(getBubblyWine().getCelebrationName());
System.out.println(getWine().getCelebrationName());
}
public static String getDeliciousDrink() {
return wine;
}
public static String getWine(){
return wine;
}
public static String BubblyWine(){
return bubblyWine;
}
}