Question
For the next 2 questions consider the following class: 1. public class Book { 2. private String author; private String title; private Integer isbn; private
For the next 2 questions consider the following class:
1. public class Book { 2. private String author; private String title; private Integer isbn; private Integer numberOfPages; 3. public Book(String author, String titleIn, Integer isbnIn, Integer numberOfPagesIn){ this.author = author; title = titleIn; isbn = isbnIn; numberOfPages = numberOfPagesIn; } 4. public String getAuthor() { return author; } public void setAuthor(String author) { this.author = author; } public String getTitle() { return title; } public void setTitle(String title) { this.title = title; } public Integer getIsbn() { return isbn; } public void setIsbn(Integer isbn) { this.isbn = isbn; } public Integer getNumberOfPages() { return numberOfPages; } public void setNumberOfPages(Integer numberOfPages) { this.numberOfPages = numberOfPages; } }
1.Which section from the book class refers to the class members?
2.Which section from the book class refers to the class constructor?
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started