Question
Asked by:
mahsan
mahsan from Wari High School
Rating : No Rating
Questions Asked: 9
Tutorials Posted: 0
 

$20.00 OOP inheritance and GUI

Q:
There are 2 questions with its sub-questions. The main topics are:

Q1. Rewrite the LibraryItem class to use inheritance. This is from my previous LibraryItem class continuation.

Q2. Make an GUI test with 3 questions and a SUBMIT button

Please find the attachment for details
 
Attachments:
OOP.doc (80K)
 
Available Tutorials to this Question
Posted by:
chetan2009
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
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)
   
Join Now or Log In
Get Tutoring
Get Paid
Academic Honesty