Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

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

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Advances In Knowledge Discovery In Databases

Authors: Animesh Adhikari, Jhimli Adhikari

1st Edition

3319132121, 9783319132129

More Books

Students also viewed these Databases questions

Question

What does this key public know about this issue?

Answered: 1 week ago

Question

What is the nature and type of each key public?

Answered: 1 week ago

Question

What does this public need on this issue?

Answered: 1 week ago