Question: and the langue is java, thx. We want to be able to run the following lines of code: ArrayList party = new ArrayLis party.add(new Pikachu

 and the langue is java, thx. We want to be able
to run the following lines of code: ArrayList party = new ArrayLis
and the langue is java, thx.

We want to be able to run the following lines of code: ArrayList party = new ArrayLis party.add(new Pikachu (); // Ash Ketch party.add(new Caterpie(); // Ash Ketch We have already defined the following abstract class: abstract class Pokemon { // abstract method public abstract void makeNoise(); // instance method public void makeSleepNoise() { System.out.println("Zzz"); However, our code won't compile, and we don't know what's wrong. TASK: Fix the bug(s) in our code. Details java8 1 class Pikachu { public void make Noise() { System.out.println("Pika-pi!"); TASK: Fix the bug(s) in our code. Details > i java8 v 1 class Pikachu { public void makeNoise() { System.out.println("Pika-pi!"); N 7 class Caterpie { public void makeNoise() { System.out.println("Waaaaa"); 10 } 11) CD 0 V Submit Next lesson Passed: 117 Successfully: 51% Leave a comment

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!