1answer.
Ask question
Login Signup
Ask question
All categories
  • English
  • Mathematics
  • Social Studies
  • Business
  • History
  • Health
  • Geography
  • Biology
  • Physics
  • Chemistry
  • Computers and Technology
  • Arts
  • World Languages
  • Spanish
  • French
  • German
  • Advanced Placement (AP)
  • SAT
  • Medicine
  • Law
  • Engineering
V125BC [204]
3 years ago
7

Based on the data definition classes identified below, assume you wish to create a Dictionary class that inherits from the Book

class. In addition to title and cost, the Dictionary class must also store the number of words present in the dictionary. Write the code that will create a constructor in the dictionary class that passes in and sets the dictionary's title, cost, and number of words.
Computers and Technology
1 answer:
BabaBlast [244]3 years ago
7 0

Answer:

Explanation:

The following code is written in Java and creates the constructor for the Dictionary class as requested. This class extends the Book class and assumes that the variables for the title and the cost are part of the Book class, so it simply calls and initializes them using the constructor.

class Dictionary extends Book {

   int numberWords;

   

   public void Dictionary(String title, int cost, int numberWords) {

       this.title = title;

       this.cost = cost;

       this.numberWords = numberWords;

   }

}

You might be interested in
Write a program in Java to display the given pattern.
Elina [12.6K]

Answer:

class Main {  

 public static void main(String args[]) {

   for(int i=0; i<6;i++) {

       for(int j=0;j<i+1;j++) {

           System.out.printf("%d ",2*i+1+2*j);

       }

       System.out.println();

   }

 }

}

Explanation:

You will need two nested loops for sure.

For the exact assignments of variables, many flavors of the solution exist, this is just one possible option.

3 0
3 years ago
What happen if go to setting and go to my personal account in a school computer?
aleksandrvk [35]
The public WiFi your school utilizes can see your log in activities, even if you erased the history, be careful
3 0
3 years ago
The combination of hardware and software assembly accomplish some specific task as how...?​
Ostrovityanka [42]

Answer:

A computing system can be referred to as a combination of hardware and software forms created to intentionally interact in specific ways such that the combination of both is able to achieve certain tasks.

Explanation:

Whilst a hardware refers to all the visible parts of the computing system such as the Visual Display Monitor or Screen, Keypads or Keyboards, Mouse and other input devices such as the camera, storage devices etc, the Software refers to intangible part - the logical instructions (machine language) which instructions the hardware on what or what not to do.

Cheers

8 0
3 years ago
Priortotheearly1980s,machineswerebuiltwithmoreandmorecomplexinstructionset. TheMIPSisaRISCmachine.WhyhastherebeenamovetoRISCmach
jenyasd209 [6]

Ansoser:

dude i dont know maybe c?

Explcanation:

the quadratic formula states one small stem for man one periodic table for alberto the great teacher

5 0
3 years ago
With contention, a computer does not have to wait before it can transmit. a computer can transmit at anytime.
Firdavs [7]
If its true or false, Then its false.
7 0
4 years ago
Other questions:
  • The Tab dialog box helps you set tabs in your word processing document. What does this dialog box control the movement of when y
    15·2 answers
  • Tom is an aspiring animator. What qualification does he need to increase his chances of employment? A. bachelor’s degree in comp
    13·1 answer
  • Soa is a set of​ self-contained web services that communicate with each other to create a working software application.
    12·1 answer
  • 2.24 Write the relevant Python expression or statement, involving a list of numbers lst and using list operators and methods for
    11·1 answer
  • La computadora es un medio de comunicacion moderno?
    8·1 answer
  • Define some everyday if else statements you use to determine action. What are the branches of your statement?
    12·1 answer
  • What are somd negetive aspects and some positive aspects of having robots as a part of workplace?
    13·1 answer
  • Which of the following is a separate summary worksheet in the same workbook?
    14·1 answer
  • Which of these is true of blackhat and whitehat hackers?
    5·2 answers
  • Which internetworking device makes computers that are connected to separate segments appear and behave as if they're on the same
    6·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!