class App {
   public static void main(String[] args) {
      Meat mt = new Meat(600, "mbrizola", 12);
      mt.eat();
      System.out.println(mt.getCalories());
      System.out.println(mt.isLate());
      System.out.println(mt.givesStrength());
   }
}

interface Dish {
   void eat();          // public
   int getCalories();   // public
}

interface MainDish extends Dish {
   int MEALTIME = 14;   // public, static, final
   boolean isLate();
}

interface HealthyDishTraits {
   int LOWCALORIES = 300;
   int givesStrength();
}

class Meat implements MainDish, HealthyDishTraits {
   int calories;
   String name;
   int time;
   Meat(int cal, String nam, int t) {
      calories = cal;
      name = nam;
      time = t;
      System.out.println("You are eating :" + name +
                         " at " + time + " having " +
                         calories + " calories");
   }

   public void eat() {                        // public
      System.out.println("Eating " + name);
   }

   public int getCalories() {                 // public
      return calories;
   }

   public boolean isLate() {
      return ((time > MEALTIME) ? true : false);
   }

   public int givesStrength() {
      return (calories - LOWCALORIES);
   }
}
