Question: For the next 4 questions consider the following class : 1 . public class Book { 2 . private String author; private String title; private

For the next 4 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;
}
}
In section 2, the word private is an example of ____
Group of answer choices
encapsulation, access modification
abstraction
inheritance
polymorphism
Flag question: Question 10
Question 101 pts
The book class from the previous question is a sub class.
Group of answer choices
True
False
Flag question: Question 11
Question 111 pts
Which section from the book class refers to the class members?
Group of answer choices
2
4
1
3
Flag question: Question 12
Question 121 pts
Which section from the book class refers to the class constructor?
Group of answer choices
3
2
1
4
Flag question: Question 13
Question 131 pts
A namespace that organizes classes and interfaces by functionality is called a ____
Group of answer choices
state
class
method
package
Flag question: Question 14
Question 141 pts
What are the two common characteristics shared by all classes?
Group of answer choices
Methods and messages
Methods and interfaces
Private and public
State and actions

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!