Question: JAVA CODING: (2) (9 points) In your eLearn assignment3 folder, find the program dogspeak.java and load onto your assignment project in Eclipse. - This program
JAVA CODING:


(2) (9 points) In your eLearn assignment3 folder, find the program dogspeak.java and load onto your assignment project in Eclipse. - This program creates a Class Dog with an overloaded bark) method which is overloaded based on the various type of primitive data types. The program prints the "sound" based on these characters using the same method name but different parameters. Currently the program is only making (or printing) two sounds: be quiet 1 yow (3 points) See if you can make all the available sounds listed in the constructor based on the primitive data type in the argument. 2.1 (3 points) Add String X-"what ?", after line 32 ( int l-o:) and add another d.bark( with X as the argument. Describe what happen and how do you fix it? (add the explanation as comments in your codes) 2.2 ) (3 points) Add two more overloaded methods into the constructor. These overloaded methods will have two arguments of different data type and in reverse order relative to each other. You should the following two additional outputs from the list of dog speaks cool - iyow iyow - cool
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
