subject

For this activity, you will model a book in java. To do this, you will create a class called Book. A book will have the following properties:Book titleAuthor nameNumber of pagesDate publishedPublisher nameIncorporate information hiding when it comes to your instance variables. This means, Main. java should not have access to them directly. Create getters and setters for each instance variable. You will also have a Main. java class. In this class, from main(), you will create 3 books. For each book, set each each instance variable (as mentioned above) using the set functions available. Then, print out each book's details (their instance variables).Use real books for values to fill in the instance variables with. You can use the book for this class for one of your book object as a n example. NOTE: do not create a custom constructor. Do not use toString().Sample RunsSample Program Run (1 book shown. Print out 3 total)Book 1:Book Name: Fahrenheit 451Author Name: Ray BradburyNumber of pages: 256Date Published: October 19, 1953Publisher Name: Ballantine BooksRubricBook. java contains all instance variables, and incorporates information hiding principles. (2 pts)Setters and getters created properly. 3 book objects created in Main. Values from book objects are set and printed out correctly.

ansver
Answers: 3

Another question on Computers and Technology

question
Computers and Technology, 22.06.2019 12:00
Which of the following does 3d animation create an illusion of on the screen? a. depth b. emotion c. length d. dialogue
Answers: 1
question
Computers and Technology, 23.06.2019 04:20
4. a1. vince owns a television repair shop that is insured undera commercial package policy. the policy includes thebuilding and personal property coverage form and thecauses-of-loss broad form. the declarations page indicatesthat coverage applies to both the building and the namedinsured's business property. explain whether or not thefollowing losses would be covered under his policy.a. a fire occurs on the premises, and the building isbadly damaged.b. a burglar steals some money and securities from anunlocked safe.c. a business computer is damaged by vandals whobreak into the shop after business hours.d. a tornado touches down near the store. several tel-evision sets of customers in the shop for repair aredamaged in the storm.til
Answers: 2
question
Computers and Technology, 23.06.2019 14:30
Choose the answers that best complete each sentence. on average,are more expensive than other kinds of postsecondary schools. the cost of room and board includes. to save money, some students attend auniversity in their home state.
Answers: 2
question
Computers and Technology, 23.06.2019 23:30
The keyboard usually has six rows of keys. which of the following is not one of the key group categories? letter keys number keys control keys graphic keys
Answers: 1
You know the right answer?
For this activity, you will model a book in java. To do this, you will create a class called Book. A...
Questions
question
Mathematics, 21.09.2019 01:20
Questions on the website: 13722361