java programming its so hard i need help please.
Write Java statements as required in the following questions:
1) Look at the following partial class definition, and respond the questions that follow it:
public class Book
private String title;
private String author;
private String publisher;
private int copiesSold;
a) Write a no-arg constructor for this class. It assigns all String fields to “N/A” and the copiesSold to 0.
b) Write an overloaded constructor that accepts arguments to initialize title, author and publisher. It assigns copiesSold to 0.
c) Write another overloaded constructor for this class. The constructor should accept an argument for each of the field.
d) Write an accessor method for the title field.
e) Write a mutator method for the copiesSold field.
f) Draw a UML diagram for the class, including the methods you have written.
ANYTHING WILL HELP PLEASE.
Re: java programming its so hard i need help please.
Take the questions one at a time and try to answer them. Post your code and your questions or the error messages.
Take a look at the tutorial: http://docs.oracle.com/javase/tutori...structors.html
Please edit your post and wrap your code with
<YOUR CODE HERE>
to get highlighting and preserve formatting.