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 22:00
What is the name of the option in most presentation applications with which you can modify slide elements? 1. the option enables you to modify a slide element in most presentation applications.
Answers: 3
question
Computers and Technology, 23.06.2019 00:00
Which is the correct sequence of steps to set up a document in landscape orientation? a. select page setup from the file menu. then click the margins tab and select landscape. b. select page setup from the edit menu. then click the margins tab and select landscape. c. select page setup from the insert menu. then click the margins tab and select landscape. d. select page setup from the format menu. then click the margins tab and select landscape
Answers: 1
question
Computers and Technology, 23.06.2019 01:50
Write a program that uses a random number generator to generate a two digit positive integer and allows the user to perform one or more of the following operations: a. double the number. b. reverse the digits of the number. c. raise the number to the power of 2, 3, or 4. d. sum the digits of the number. e. if the number is a two-digit number, then raise the first digit to the power of the second digit. f. if the number is a three-digit number and the last digit is less than or equal to 4, then raise the first two digits to the power of the last digit. after performing an operation if the number is less than 10, add 10 to the number. also, after each operation determine if the number is prime. each successive operation should be performed on the number generated by the last operation. your program should not contain any global variables and each of these operations must be implemented by a separate function. also, your program should be menu driven. 7. (fraction calculator) write a program that
Answers: 1
question
Computers and Technology, 23.06.2019 07:00
Why were most movies from the late 1890s until the early 1930s only filmed in black and white? there were only a few people who could afford the technology to produce color motion pictures back then. audiences did not want color motion pictures until later. the film used to make color motion pictures often overheated, which was a safety hazard, so it was generally not allowed. color films had to be hand-colored, frame by frame.
Answers: 3
You know the right answer?
Public class Book {
private String author;
private String title;
public Book(St...
Questions
question
Mathematics, 27.02.2021 14:00
question
Chemistry, 27.02.2021 14:00
question
Geography, 27.02.2021 14:00
question
Arts, 27.02.2021 14:00
Questions on the website: 13722367