Posted by:
chetan2009 from University
Rating (115): A+
Questions Asked: 0
Tutorials Posted: 407, earned
$1,948.56
$30.00 Self Explanatory, Compiled and Tested Program
- This tutorial was purchased 1 time and rated A+ by students like you.
- Posted on Sep. 03, 2008 at 07:56:33AM
A:
Preview: ... feel free ...
The full tutorial is about 10 words long plus attachments.
Attachments:
UML.jpg (181K) (Preview)
LibraryItemTest.java (4K) (Preview)
JFrame1.java (4K) (Preview)
Posted by:
modulo51 from University of California, Berkeley
Rating (36): B+
Questions Asked: 0
Tutorials Posted: 209, earned
$535.69
$17.00 Question 1 only: all class files, screenshot, UMLdiagram, usenotes
- This tutorial hasn't been purchased yet.
- Posted on Sep 06, 2008 at 9:18:01PM
A:
Preview: ... s.getCost());
return;
}
}
///// ***************************************************
/*
* File: Book.java
* Date: September 4, 2008
*
*/
public class Book extends LibraryItem {
private int numPages;
private String datePub;
Book(String title, String author, String status, double cost,
int pages, String date) {
super(title, author, status, cost);
this.numPages = pages;
this.datePub = new String(date);
}
public Book(Book bookIn) {
this.title = bookIn.title;
this.author = new String(bookIn.author);
this.status = new String(bookIn.status);
this.cost = bookIn.cost;
this.numPages = bookIn.numPages;
this.datePub = new String(bookIn.datePub);
}
private int getNumPages() {
return this.numPages;
}
public String getPubDate() {
return new String(this.datePub);
}
public void setPubDate(String newDate) {
this.datePub = new String(newDate);
}
public void showBook() {
System.out.println("Item is a book.");
this.showItem();
System.out.println("Number of pages: " + this.getNumPages() + "\\\\n" +
"Publication date: " + this.getPubDate() + "\\\\n");
}
}
///// ************************************************
/*
* File DVD.java
* Date: September 4, 2008
*
*/
public class DVD extends Libr ...
The full tutorial is about 2107 words long plus attachments.
Attachments:
CombinedSourceFiles.txt (7K) (Preview)
ScreenShot.JPG (71K) (Preview)
UML_LibraryItem.doc (45K) (Preview)
UseNotes.txt (3K) (Preview)