Page 1 of 1

Identify three CORRECT matches when the following statement is inserted at line 14 in Program 1: 1 1/Program 1 class MyA

Posted: Fri May 20, 2022 11:43 am
by answerhappygod
Identify Three Correct Matches When The Following Statement Is Inserted At Line 14 In Program 1 1 1 Program 1 Class Mya 1
Identify Three Correct Matches When The Following Statement Is Inserted At Line 14 In Program 1 1 1 Program 1 Class Mya 1 (107.9 KiB) Viewed 34 times
Identify three CORRECT matches when the following statement is inserted at line 14 in Program 1: 1 1/Program 1 class MyAssessment { enum Courseworks { Test (30), Quiz (15), Exercise (15); 3 public int mark; private CourseWorks (int mark) { this.mark = mark; } } } 8 9 10 11 12 13 14 15 16 ini wo class MyScore { public static void main (String [] a) { //Insert code here } } O Courseworks cw = MyAssessment. CourseWorks. Quiz; → Compilation error: CourseWorks enum cannot be instantiated O CourseWorks cw = new CourseWorks(); - Compilation error: incompatible types O Courseworks cw = new Courseworks(); - The program was successfully compiled O Courseworks cw = new CourseWorks(); - Compilation error: CourseWorks symbol cannot be found MyAssessment.courseworks cw = MyAssessment.CourseWorks. Test; - Compilation error: CourseWorks enum cannot be instantiated MyAssessment. Courseworks cw = MyAssessment.CourseWorks. Test; → The program was successfully compiled O CourselWorks cw = MyAssessment.CourseWorks.Quiz; - Compilation error: incompatible types O Courselorks cw = MyAssessment. Courseworks.Quiz; - The program was successfully compiled O Courseworks cw = MyAssessment. CourseWorks.Quiz; - Compilation error: CourseWorks symbol cannot be found MyAssessment.CourseWorks cw = MyAssessment. CourseWorks. Test; - Compilation error: incompatible types O CourseWorks cw = new Courseworks(); - Compilation error: CourseWorks enum cannot be instantiated O MyAssessment. CourseWorks cw = MyAssessment. CourseWorks. Test; Compilation error: CourseWorks symbol cannot be found