subject
Computers and Technology, 12.01.2021 18:00 rome58

In this exercise, you are going to be working with 4 classes, a Book superclass with TextBook and Novel subclasses, and a BookTester class to run your program. For the Book, TextBook, and Novel class, you will create a constructor and all getters and setters. Be sure to follow standard naming conventions for your getters and setters! Additional information for each class is below. Book Class
The Book class will have a title and author as instance variables and the constructor should follow this format:
public Book(String title, String author)
TextBook Class
The TextBook class will have a subject and edition as instance variables and the constructor should follow this format:
public TextBook(String title, String author,
String subject, String edition)
Novel Class
The Novel class will have a genre and pages as instance variables and the constructor should follow this format:
public Novel(String title, String author,
String genre, int pages)
BookTester
In the tester class, you should create an ArrayList that will store all the books in your library. Then create you library by adding at least 3 textbooks and 3 novels to the ArrayList.
After creating your library, use a loop to access the ArrayList and print out any information you have access to.
public class Novel extends Book
{
// Start here!
}
public class Book
{
// Start here!
}
public class TextBook extends Book
{
// Start here!
}
import java. util. ArrayList;
public class BookTester
{
public static void main(String[] args)
{
// Start here!
}
}

ansver
Answers: 2

Another question on Computers and Technology

question
Computers and Technology, 22.06.2019 01:00
How can a broadcast station be received through cable and satellite systems?
Answers: 1
question
Computers and Technology, 22.06.2019 16:30
Primary tech skills are skills that are necessary for success in online education
Answers: 3
question
Computers and Technology, 22.06.2019 20:00
Awide variety of “ apps “ are available to customize devices. which category of app does the word processing software fall into?
Answers: 2
question
Computers and Technology, 23.06.2019 09:30
Write an essay on online collaboration, how to do it, the challenges, resolving the challenges, and consider whether the risks are greater than rewards. ( need )
Answers: 1
You know the right answer?
In this exercise, you are going to be working with 4 classes, a Book superclass with TextBook and No...
Questions
question
Mathematics, 19.10.2019 11:30
question
History, 19.10.2019 11:30
question
Mathematics, 19.10.2019 11:30
Questions on the website: 13722361