Question
Asked by:
mahsan
mahsan
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
Rating (146): A
Questions Asked: 0
Tutorials Posted: 464, earned $2,832.42
 

$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
Rating (110): A-
Questions Asked: 1
Tutorials Posted: 353, earned $2,117.64
 

$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());<br><br> return;<br> }<br>}<br>///// ***************************************************<br>/*<br> * File: Book.java<br> * Date: September 4, 2008<br> * <br> */<br><br>public class Book extends LibraryItem {<br><br> private int numPages;<br> private String datePub;<br><br> Book(String title, String author, String status, double cost,<br> int pages, String date) {<br> super(title, author, status, cost);<br> this.numPages = pages;<br> this.datePub = new String(date);<br> }<br><br> public Book(Book bookIn) {<br> this.title = bookIn.title;<br> this.author = new String(bookIn.author);<br> this.status = new String(bookIn.status);<br> this.cost = bookIn.cost;<br> this.numPages = bookIn.numPages;<br> this.datePub = new String(bookIn.datePub);<br> }<br><br> private int getNumPages() {<br> return this.numPages;<br> }<br><br> public String getPubDate() {<br> return new String(this.datePub);<br> }<br><br> public void setPubDate(String newDate) {<br> this.datePub = new String(newDate);<br> }<br><br> public void showBook() {<br> System.out.println("Item is a book.");<br> this.showItem();<br> System.out.println("Number of pages: " + this.getNumPages() + "\\\\n" +<br> "Publication date: " + this.getPubDate() + "\\\\n");<br> }<br>}<br><br>///// ************************************************<br><br>/*<br> * File DVD.java<br> * Date: September 4, 2008<br> * <br> */<br><br>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