Language:EN
Pages: 3
Words: 447
Rating : ⭐⭐⭐⭐⭐
Price: $10.99
Page 1 Preview
create uml class diagram for computer science book

Create uml class diagram for computer science book

Java Assignment

Answer the following Questions:

CSBooks
  • numberSold : int

+ setBookTitle (String) : void

+ getBookAuthor() : String

+ getNumberofBook() : int

private String bookTitle;

private String bookAuthor;

public String getBookTitle()

{}

public void setBookAuthor(String bookAuthor)

{}

public double getNumberSold()

{}

a) What would be an appropriate name for the superclass? (1 mark)

Answer: The appropriate name for superclass is Library

  • arrayAudioBooks : String

4a. Let’s assume that you have a numberSold field and a getNumberSold method in the superclass.

For magazines, numberSold refers to the number of yearly subscriptions sold. However, magazines can be published quarterly (4 issues a year), bi-monthly (6 issues a year), etc. The Magazine class will include a field called issues. Write the method (in the Magazine class) that when

magazine1.getNumberSold()

You are viewing 1/3rd of the document.Purchase the document to get full access instantly

Immediately available after payment
Both online and downloadable
No strings attached
How It Works
Login account
Login Your Account
Place in cart
Add to Cart
send in the money
Make payment
Document download
Download File
img

Uploaded by : Joseph Lindsey

PageId: DOC4440771