I don't understand why my code is not compiling. line 10 is: public Monkey(String name, String species, String tailLength String height, String bodyLength, String gender, String age, String weight, String acquisitionDate, String acquisitionCountry, String trainingStatus, boolean reserved, String inServiceCountry) {

Database System Concepts
7th Edition
ISBN:9780078022159
Author:Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Publisher:Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Chapter1: Introduction
Section: Chapter Questions
Problem 1PE
icon
Related questions
Question

I don't understand why my code is not compiling.

line 10 is:

public Monkey(String name, String species, String tailLength String height, String bodyLength, String gender, String age, String weight, String acquisitionDate, String acquisitionCountry, String trainingStatus, boolean reserved, String inServiceCountry) {

 

File Edit Source Refactor Navigate Search Project Run Window Help
X.project
18
19
20
21
22
023
30
31
320
33
34
350
36
37
380
39
40
410
42
43
440
24 }
25 //accessors and mutators
260
27
28
290
45
46
470
48
49
nnn (n
50
OHNC
51
52
53
}
RescueAnimal.java
Dog.java
setWeight (weight);
public String getSpecies () {
return species;
setAcquisitionDate (acquisitionDate);
setAcquisition Location (acquisitionCountry) ;|
setTrainingStatus (trainingStatus);
setReserved (reserved);
setInService Country (inService Country) i
}
public void setSpecies (String monkeySpecies) {
species = monkeySpecies;
}
public String getTailLength () {
return tailLength;
}
}
public String getHeight () {
return height;
}
public void setTailLength (String monkeyTailLength) {
tailLength = monkeyTailLength;
}
Driver.java
}
public void setHeight (String monkeyHeight) {
height=monkeyHeight;
public String getBodyLength () {
return bodyLength;
}
Monkey.java
public void setBodyLength (String monkeyBodyLength) {
bodyLength = monkeyBodyLength;
Quick Access
0
Transcribed Image Text:File Edit Source Refactor Navigate Search Project Run Window Help X.project 18 19 20 21 22 023 30 31 320 33 34 350 36 37 380 39 40 410 42 43 440 24 } 25 //accessors and mutators 260 27 28 290 45 46 470 48 49 nnn (n 50 OHNC 51 52 53 } RescueAnimal.java Dog.java setWeight (weight); public String getSpecies () { return species; setAcquisitionDate (acquisitionDate); setAcquisition Location (acquisitionCountry) ;| setTrainingStatus (trainingStatus); setReserved (reserved); setInService Country (inService Country) i } public void setSpecies (String monkeySpecies) { species = monkeySpecies; } public String getTailLength () { return tailLength; } } public String getHeight () { return height; } public void setTailLength (String monkeyTailLength) { tailLength = monkeyTailLength; } Driver.java } public void setHeight (String monkeyHeight) { height=monkeyHeight; public String getBodyLength () { return bodyLength; } Monkey.java public void setBodyLength (String monkeyBodyLength) { bodyLength = monkeyBodyLength; Quick Access 0
File Edit Source Refactor Navigate Search Project Run Window Help
7
8
9
100
11
12
13
14
15
16
17
18
x .project
1
2 //monkey inherits from rescue animal
3 public class Monkey extends RescueAnimal {
4 //instance variables
5
6
3 3 3 3 3
31
320
33
19
20
21
22
23
24 }
25
260
27
28
}
290 public void setSpecies (String monkeySpecies) {
30
species = monkeySpecies;
34
Dog.java
RescueAnimal.java
private String species;
private String tailLength;
private String height;
private String bodyLength;
}
Driver.java
public Monkey (String name, String species, String tailLength String height, String bodyLength String gender, String age, String weight, String acquisitionDate S
setName (name);
setSpecies (species);
setTailLength (tailLength);
setHeight (height);
setBodyLength (bodyLength);
setGender (gender);
setAge (age);
setWeight (weight);
//a accessors and mutators
}
setAcquisitionDate (acquisitionDate);
setAcquisition Location (acquisitionCountry) ;|
setTrainingStatus (trainingStatus);
public String getSpecies () {
return species;
setReserved (reserved);
setInService Country (inService Country) i
public String getTailLength () {
return tailLength;
Monkey.java
Quick Access
0
4
0
#J
69
Transcribed Image Text:File Edit Source Refactor Navigate Search Project Run Window Help 7 8 9 100 11 12 13 14 15 16 17 18 x .project 1 2 //monkey inherits from rescue animal 3 public class Monkey extends RescueAnimal { 4 //instance variables 5 6 3 3 3 3 3 31 320 33 19 20 21 22 23 24 } 25 260 27 28 } 290 public void setSpecies (String monkeySpecies) { 30 species = monkeySpecies; 34 Dog.java RescueAnimal.java private String species; private String tailLength; private String height; private String bodyLength; } Driver.java public Monkey (String name, String species, String tailLength String height, String bodyLength String gender, String age, String weight, String acquisitionDate S setName (name); setSpecies (species); setTailLength (tailLength); setHeight (height); setBodyLength (bodyLength); setGender (gender); setAge (age); setWeight (weight); //a accessors and mutators } setAcquisitionDate (acquisitionDate); setAcquisition Location (acquisitionCountry) ;| setTrainingStatus (trainingStatus); public String getSpecies () { return species; setReserved (reserved); setInService Country (inService Country) i public String getTailLength () { return tailLength; Monkey.java Quick Access 0 4 0 #J 69
Expert Solution
trending now

Trending now

This is a popular solution!

steps

Step by step

Solved in 2 steps

Blurred answer
Knowledge Booster
Array
Learn more about
Need a deep-dive on the concept behind this application? Look no further. Learn more about this topic, computer-science and related others by exploring similar questions and additional content below.
Similar questions
Recommended textbooks for you
Database System Concepts
Database System Concepts
Computer Science
ISBN:
9780078022159
Author:
Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Publisher:
McGraw-Hill Education
Starting Out with Python (4th Edition)
Starting Out with Python (4th Edition)
Computer Science
ISBN:
9780134444321
Author:
Tony Gaddis
Publisher:
PEARSON
Digital Fundamentals (11th Edition)
Digital Fundamentals (11th Edition)
Computer Science
ISBN:
9780132737968
Author:
Thomas L. Floyd
Publisher:
PEARSON
C How to Program (8th Edition)
C How to Program (8th Edition)
Computer Science
ISBN:
9780133976892
Author:
Paul J. Deitel, Harvey Deitel
Publisher:
PEARSON
Database Systems: Design, Implementation, & Manag…
Database Systems: Design, Implementation, & Manag…
Computer Science
ISBN:
9781337627900
Author:
Carlos Coronel, Steven Morris
Publisher:
Cengage Learning
Programmable Logic Controllers
Programmable Logic Controllers
Computer Science
ISBN:
9780073373843
Author:
Frank D. Petruzella
Publisher:
McGraw-Hill Education