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
Can you think of any other disruptive or nontraditional ways of earning that you could use the Internet?
denis23 [38]

Explanation:

The internet is a tool that has revolutionized the way communication is carried out. As it is a dynamic tool with easy access for any user, it is possible to use different platforms or social media to realize disruptive or non-traditional forms of earnings.

Some of them could be the dissemination of links that would generate advertising for other companies, or the free dissemination in social media of services, and several other innovations that use the internet as the main means to manufacture an extra income, such as online teaching, advertising for third parties etc.

7 0
4 years ago
3. How has air - conditioning affected human life?​
meriva

Answer:

Sudden changes in temperature and humidity affect the respiratory system. ... The air circulation can transmit infectious respiratory diseases. Airborne dust and fungi can cause allergic reactions. Air conditioning is associated with chronic rhinitis and pharyngitis, throat irritation and hoarseness.

6 0
3 years ago
Spanning Tree Protocol (STP) is a loop-prevention mechanism used in modern networks. STP is, however, vulnerable to misconfigura
maks197457 [2]

Answer:

Any of the following:

1. Root Guard

2. BPDU Guard

3. BPDU Filtering

Explanation:

Given that STP an acronym of Spanning Tree Protocol, and its major purpose is to stop the bridge loops and the broadcast radiation that emanates from its topology.

Cisco carried out three instruments or tools to protect the STP topology. These protection tools accompany the STP, and they are the following:

1. Root Guard

2. BPDU Guard

3. BPDU Filtering

3 0
3 years ago
Write a class encapsulating a PC-based game in the package com.labs.lab6.games , which inherits from Game . A PC-based game has
Lemur [1.5K]

Answer:

Java.

Explanation:

class PC-game extends Game {

   int minRAM;

   int minDiskSpace;

   float minProcessorSpeed;

   //////////////////////////////////////////////////////////////////////////////////////////////////

   public PC-game(int minRam, minDiskSpace, minProcessorSpeed) {

       this.minRam = minRam;

       this.minDiskSpace = minDiskSpace;

       this.minProcessorSpeed = minProcessorSpeed;

   }

   public String toString() {  

       return "Ram megabytes: " + minRam + ", Disk Space MB: " + minDiskSpace + ", Processor GHz: " + minProcessorSpeed;

   }

   //////////////////////////////////////////////////////////////////////////////////////////////////

   public static void main(String[] args) {

       PC-game pcGame1 = new PC-game(512, 2000, 2.3);

       System.out.println(pcGame1);

   }

}

8 0
4 years ago
On Zaxen.com, homebuyers enter information regarding their preferred home location, price, and features. Using an ________, the
Rufina [12.5K]
 Using an expert system The website automatically ..........
3 0
3 years ago
Other questions:
  • The difference between a want and a need is a want is not necessary for survival. Things necessary for survival are known as ___
    6·1 answer
  • Universal Containers has strict security model enforced through object, field, and row-based security mechanisms. The Architect
    9·1 answer
  • A(n) _____ is an organized collection of people, procedures, software, databases, and devices that stores and retrieves knowledg
    6·1 answer
  • Your first job is to create a Java program that repeatedly asks the user whether they wish to calculate another square root. If
    11·1 answer
  • QUESTION 16
    14·1 answer
  • Write down the three part of a computer.<br>​
    7·1 answer
  • In step 4 of the CSMA/CA protocol, a station that successfully transmits a frame begins the protocol to transmit a second frame
    9·1 answer
  • An algorithm is Group of answer choices The part of the computer that does the processing A complete computer program The inputs
    6·1 answer
  • Ryan is developing a camera app for iOS with the following objectives: make it easier for users to choose and sort pictures; and
    8·1 answer
  • What type of program would you use to create a personal budget?
    11·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!