Question: please help in java will like Given maind and a base Book class, define a derived class called Encyc Lopedia with member methods to get

please help in java will like  please help in java will like Given maind and a base
Book class, define a derived class called Encyc Lopedia with member methods
to get and set private fields of the following types: - String
to store the edition - int to store the number of pages
Within the derived Encyclopedia class, define a printinfo0 method that overrides the
Book class printinfo0 method by printing the titie, author, publisher, publication date,
edition, and number of pages. Ex. If the input is: The Hobblt
J. R. R. Tolkien George Allen 6 Unwin 21 September 1937 The

Given maind and a base Book class, define a derived class called Encyc Lopedia with member methods to get and set private fields of the following types: - String to store the edition - int to store the number of pages Within the derived Encyclopedia class, define a printinfo0 method that overrides the Book class printinfo0 method by printing the titie, author, publisher, publication date, edition, and number of pages. Ex. If the input is: The Hobblt J. R. R. Tolkien George Allen 6 Unwin 21 September 1937 The Illustrated Encyelopedia of the Univerve Ian Ridpath ation-Gupt111 2001 2nd 384 the oulput is Fle is marked as read only Current file: Bookinformation.java - File is marked as read only Current file: Bookinformation.java - 161718192021222324252627282930publisher=scnr.nextLine();publicationDate=scnr.nextLine();eTitle=scnr.nextline();eAuthor=scnr.nextline();ePublisher=scnr.nextline();ePublicationDate=scnr.nextLine();edition=scnr.nextLine();numPages=scnr.nextInt();myBook.setTitle(title);myBook.setAuthor(author);myBook.setPublisher(publisher);;myBook.setPublicationDate(publicationDate);myBook.printInfo(); myEncyclopedia. setTitle(eTitle); myEncyclopedia. setAuthor(eAuthor); myEncyclopedia. setPublisher(ePublisher); myEncyclopedia.setPublicationDate(ePublicationDate); myEncyclopedia.setEdition(edition); myEncyclopedia.setNumPages(numPages); myEncyclopedia.printInfo(); \} File is marked as read only Current file: Book.java - File is marked as read only Current file: Book.java - Current file: Encyclopedia.java

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!