Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

I need help solving this error GRASP CSD (Java) Is Window Help public Book (String author, String category, String name, double price) this.author=author; + ***

I need help solving this error

image

GRASP CSD (Java) Is Window Help public Book (String author, String category, String name, double price) this.author=author; + *** 12 13 14 234 15 { 16 17 18 19 20 } 21 22 23 24 * */ this.category=category; this.name=name; this.price-price;|| /* then we have to create an accessor method for each of the instance variables created above to retun whatever * has been inputted by the user 25 26 27 { public String getAuthor() CSD Shoe.java GWordCount.java G CSD BookMain.java GTextBook.java Compile Messages jGRASP Messages Run I/O Interactions Stop Clear Copy 2 errors --jGRASP wedge2: exit code for process is 1. ----jGRASP: operation complete. ----jGRASP exec: javac -g TextBook.java TextBook.java:14: error: invalid method declaration; return type required public Book(String author,String category, String name,double price) 1 error --jGRASP wedge2: exit code for process is 1. ---jGRASP: operation complete. } Line:19 Col:26 Code:0 Top:12 OVS BLK 6:54 AM X

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_2

Step: 3

blur-text-image_3

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

Java How To Program Late Objects Version

Authors: Paul Deitel, Deitel & Associates

8th Edition

0136123716, 9780136123712

More Books

Students also viewed these Programming questions

Question

What activities does the NYSE provide to assist businesses?

Answered: 1 week ago