Question: ADVANCED JAVA PROGRAMMING Activity Modify the given codes to remove the compilation errors. (2 items x 5 points) 1. public interface Carnivore { int pieces

ADVANCED JAVA PROGRAMMING
Activity Modify the given codes to remove the compilation errors. (2 items x 5 points) 1. public interface Carnivore { int pieces = 10; public static void eatgrass(); public int chew() { return 13; } } Property of STI IT1908 Weeks 12-13 2. interface Haswings { public int getNumberOfWings(); } abstract class Insect implements Haswings { abstract int getNumberOfLegs(); } public class Dragonfly extends Insect { int getNumberOfLegs() { return 6; } } Property of STI IT1908 Weeks 12-13
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
