Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

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:

image text in transcribedimage text in transcribed

(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

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Machine Learning And Knowledge Discovery In Databases European Conference Ecml Pkdd 2019 Wurzburg Germany September 16 20 2019 Proceedings Part 2 Lnai 11907

Authors: Ulf Brefeld ,Elisa Fromont ,Andreas Hotho ,Arno Knobbe ,Marloes Maathuis ,Celine Robardet

1st Edition

3030461467, 978-3030461461

More Books

Students also viewed these Databases questions

Question

Classify delivery styles by type.

Answered: 1 week ago

Question

Be familiar with the integrative servicescape model.

Answered: 1 week ago

Question

Understand the role of corporate design in communications.

Answered: 1 week ago