1. Engineering
  2. Computer Science
  3. for the next 2 questions consider the following class 1...

Question: for the next 2 questions consider the following class 1...

Question details

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?

Solution by an expert tutor
Blurred Solution
This question has been solved
Subscribe to see this solution