Results 1 to 3 of 3
  1. #1
    tnahsin is offline Member
    Join Date
    Mar 2014
    Posts
    8
    Rep Power
    0

    Default I have created the Classes mentioned.How do i solve rest of the question.

    Define the following classes

    -Book which has the fields title,releaseDate,language
    -BookCount which has the fields book (of type Book) and count(of type int)
    -Library which has a field books(of type BookCount[]) and stores the count of each book against it.
    It also has the following functions:
    --->Constructor that take a parameter of type BookCount[]
    --->getCount : given the name of a book as parameter,return how many copies of the book are there in the library.
    --->getCount : given the object of type Book as parameter,return howm many copies are there of the book with that name in the library.
    --->booksByAuthor:given the name of an author as parameter,return a Book[] of all the books written by author.
    --->getCount : returns the total number of books in the library.

  2. #2
    KevinWorkman's Avatar
    KevinWorkman is offline Crazy Cat Lady
    Join Date
    Oct 2010
    Location
    Washington, DC
    Posts
    4,016
    Rep Power
    10

    Default Re: I have created the Classes mentioned.How do i solve rest of the question.

    That isn't really how this works. You can't just dump your homework here and expect a response. Please see the link in my signature on asking questions the smart way.
    How to Ask Questions the Smart Way
    Static Void Games - Play indie games, learn from game tutorials and source code, upload your own games!

  3. #3
    gimbal2 is offline Just a guy
    Join Date
    Jun 2013
    Location
    Netherlands
    Posts
    4,269
    Rep Power
    6

    Default Re: I have created the Classes mentioned.How do i solve rest of the question.

    This reads like: "I have taken two empty sheets of paper, now how do I write my homework on it?"
    "Syntactic sugar causes cancer of the semicolon." -- Alan Perlis

Similar Threads

  1. Classes Help!!! two classes with object question.
    By stuckonjava in forum New To Java
    Replies: 16
    Last Post: 02-10-2012, 02:39 AM
  2. Replies: 3
    Last Post: 08-25-2011, 05:46 PM

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •