subject

Public class Book {
private String author;
private String title;
public Book(String the_author, String the_title)
{
author = the_author;
title = the_title;
}
}
public class Textbook extends Book
{
private String subject;
public Textbook(String the_author, String the_title, String the_subject)
{
/* missing implementation */
}
}

Which of the following can be used to replace /* missing implementation */ so that the Textbook constructor compiles without error?

a. author = the_author;
title = the_title;
subject = the_subject;

b. super(the_author, the_title);
super(the_subject);

c. subject = the_subject;
super(the_author, the_title);

d. super(the_author, the_title);
subject = the_subject;

e. super(the_author, the_title, the_subject);

ansver
Answers: 1

Another question on Computers and Technology

question
Computers and Technology, 22.06.2019 09:50
What is a rush associated with alcohol?
Answers: 1
question
Computers and Technology, 22.06.2019 12:30
Which of the choices sean are not true when considering virus behavior
Answers: 1
question
Computers and Technology, 22.06.2019 15:30
Which of the following examples has four beats in each measure?
Answers: 2
question
Computers and Technology, 22.06.2019 17:00
Acase study allows a more detailed look at the life of a single subject than any other study.
Answers: 3
You know the right answer?
Public class Book {
private String author;
private String title;
public Book(St...
Questions
question
Biology, 17.10.2019 10:30
Questions on the website: 13722367