Academic Integrity: tutoring, explanations, and feedback — we don’t complete graded work or submit on a student’s behalf.

I don\'t quite understand, what is my task. Could someone help me to do it and e

ID: 3883570 • Letter: I

Question

I don't quite understand, what is my task. Could someone help me to do it and explain to me what it's actually mean?

Activity 1: Constructors Instructions Run the library program to familiarize yourself with its functionality. Note that printing the collection is not fully operational Complete each of the accessor (getter) methods in the Book class; Good Practice Tip: always use this keyword to disambiguate the scope of variables and prevent potential problems when subclassing Observe that the Book class does not have a constructor defined. Examine the addBook code and determine how it is possible to create instances of the Book class without a constructor 1. 2. 3. 2 Lab Handout: Classes, Visibility, &Constructors; Modify the Book class by adding and implementing the following constructor: public Book (String title, Author author, String isbn, String publishDate) f .. Adding this constructor will cause syntax errors in other parts of the program. Think about why and then fix these problems by modifying the code appropriately. 4. 5.

Explanation / Answer

First thing you gotto show me the whole book class, not just this function, edit your question and paste in all the code(Add a heading Edit1: so I can see clearly).

Hints on what to do:

1. Just run the whole code you have got or class the provided.

2. Make asll the variables of class private and add setter and getter methods.

Example:

// setter for title.

public void setTitle(String title) {

// make sure you use this here.

this.title = title;

}

3. Add constructor. Class provides a default constructor that does nothing else but init-ing. So you might wanna write an empty constructor like so:

public Book() {

// does none.

}

4. Similarly add a new constructor like shown in the 4th part of your question. Another constructor don't edit this one

Hire Me For All Your Tutoring Needs
Integrity-first tutoring: clear explanations, guidance, and feedback.
Drop an Email at drjack9650@gmail.com
Chat Now And Get Quote