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
natka813 [3]
2 years ago
13

Create the following new exceptions: PokemonException, which extends the Exception class. It must have a no-parameter constructo

r, which just calls the corresponding superclass constructor KantoPokemonException, which extends PokemonException. It must have a no-parameter constructor, which just calls the no-parameter superclass constructor JohtoPokemonException, which extends PokemonException. It must have a no-parameter constructor, which just calls the no-parameter superclass constructor Hoenn PokemonException, which extends PokemonException. It must have a no-parameter constructor, which just calls the no-parameter superclass constructor SinnohPokemonException, which extends PokemonException. It must have a no-parameter constructor, which just calls the no-parameter superclass constructor Unova PokemonException, which extends PokemonException. It must have a no-parameter constructor, which just calls the no-parameter superclass constructor Kalos PokemonException, which extends PokemonException. It must have a no-parameter constructor, which just calls the no-parameter superclass constructor AlolaPokemonException, which extends PokemonException. It must have a no-parameter constructor, which just calls the no-parameter superclass constructor GalarPokemonException, which extends PokemonException. It must have a no-parameter constructor, which just calls the no-parameter superclass constructor
Computers and Technology
1 answer:
slamgirl [31]2 years ago
6 0

Answer:

public class PokemonException extends Exception {

public PokemonException() {

super();

}

}

public class KantoPokemonException extends PokemonException {

public KantoPokemonException() {

super();

}

}

public class JohtoPokemonException extends PokemonException {

public JohtoPokemonException() {

super();

}

}

public class HoennPokemonException extends PokemonException {

public HoennPokemonException() {

super();

}

}

public class SinnohPokemonException extends PokemonException {

public SinnohPokemonException() {

super();

}

}

public class UnovaPokemonException extends PokemonException {

public UnovaPokemonException() {

super();

}

}

public class KalosPokemonException extends PokemonException {

public KalosPokemonException() {

super();

}

}

public class AlolaPokemonException extends PokemonException {

public AlolaPokemonException() {

super();

}

}

public class GalarPokemonException extends PokemonException {

public GalarPokemonException() {

super();

}

}

Explanation:

  • A separate Java file needs to be created for each of the following exception.
  • Inside the constructor, call the super() method to inherit all the properties of a parent class.
You might be interested in
Create a medical report for Wellness Hospital. Mention the hospital name as the heading and the report name as the subheading. T
IrinaK [193]

Some things to consider when preparing a medical report are:

  1. Informed consent of the patient
  2. Physical examinations of the patient
  3. Background information
  4. Obtained specimens
  5. Medical history, etc.

<h3>What is a Medical Report?</h3>

This refers to the very detailed report that contains an account of a person's full clinical history.

Therefore, a sample medical report is given below:

  • Name of Hospital: Mellview Hospital
  • Address: 27, Hemingway Close, London
  • Gender: Male
  • Name: Oscar Pedrozo
  • HIV test, Malaria test, High Blood Pressure, etc.

Read more about medical reports here:

brainly.com/question/21819443

#SPJ1

5 0
2 years ago
1.<br> Which of the following is NOT caused by alcohol?
Alla [95]

Answer:

What are the choices

7 0
3 years ago
Read 2 more answers
Ses
jekas [21]

Answer:

Amoung us

Explanation:

When the imposter is sus

8 0
3 years ago
write a 2d array c program that can capture marks of 15 students and display the maximum mark, the sum and average​
bekas [8.4K]

Answer:

#include <stdio.h>  

int MaxMark(int* arr, int size) {

   int maxMark = 0;

   if (size > 0) {

       maxMark = arr[0];

   }

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

       if (arr[i] > maxMark) {

           maxMark = arr[i];

       }

   }

   return maxMark;

}

int SumMarks(int* arr, int size) {

   int sum = 0;

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

       sum += arr[i];

   }

   return sum;

}

float AvgMark(int* arr, int size) {

   int sum = SumMarks(arr, size);

   return (float)sum / size;

}

int main()

{

   int student0[] = { 7, 5, 6, 9 };

   int student1[] = { 3, 7, 7 };

   int student2[] = { 2, 8, 6, 1, 6 };

   int* marks[] = { student0, student1, student2 };

   int nrMarks[] = { 4, 3, 5 };

   int nrStudents = sizeof(marks) / sizeof(marks[0]);

   for (int student = 0; student < nrStudents; student++) {              

       printf("Student %d: max=%d, sum=%d, avg=%.1f\n",  

           student,

           MaxMark(marks[student], nrMarks[student]),

           SumMarks(marks[student], nrMarks[student]),

           AvgMark(marks[student], nrMarks[student]));

   }

   return 0;

}

Explanation:

Here is an example using a jagged array. Extend it to 15 students yourself. One weak spot is counting the number of marks, you have to keep it in sync with the array size. This is always a problem in C and would better be solved with a more dynamic data structure.

If you need the marks to be float, you can change the types.

3 0
2 years ago
What special identity group is typically used when a user accesses an FTP server that doesn't require user account logon?
Rainbow [258]

Answer:

The correct answer to the following question will be "​Anonymous logon".

Explanation:

  • Windows would never let anyone sign in interactively with an anonymous logon to the device, a person who has linked to the device without a login and password being given.
  • So they won't have to verify to an account of the user just whether you are running any shares.r document, let everyone log into the machine collaboratively with such a logon.

Therefore, Anonymous logon is the right answer.

4 0
3 years ago
Other questions:
  • Tom wants a way to automatically create ads and simplify campaign management, using his resources and Google's machine learning
    12·1 answer
  • Identify the computer cycle in each of the descriptions below by choosing the answer from the
    12·1 answer
  • Someone please help fast! I’m taking the test rn and I don’t understand this!!!!!!
    15·1 answer
  • Which categories format cells
    14·2 answers
  • Which of the following was the name of the first generation of cell phone networks?
    14·1 answer
  • You specify the shape of an oval in a Java applet by defining the oval's:__________.
    5·1 answer
  • What is the major benefit Smartphones and tablet computers have had on social media?
    9·1 answer
  • You are a database administrator. Chantelle comes to you asking for help on how to access all the data in one row of the databas
    11·1 answer
  • Consider the following code.
    7·2 answers
  • How do I go to files in Brainly I need help
    13·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!