Question: Given the following enum and class, which option fills in the blank and allows the code to compile? enum Season { SPRING, SUMMER, WINTER }
Given the following enum and class, which option fills in the blank and allows the code to compile?


enum Season { SPRING, SUMMER, WINTER } public class Weather { } public int getAverage Temperate (Season s) { switch (s) { default: } } return 30;
Step by Step Solution
3.40 Rating (163 Votes )
There are 3 Steps involved in it
Based on the Java enum Season and class Weather provided in the first image and the switch statement structure that is being used in the getAverageTem... View full answer
Get step-by-step solutions from verified subject matter experts
