What is Polymorphism in programming? Explain in your own words with examples.

Answers

Answer 1

Answer:

A computer program which can change on it's own, such as a polymorphic virus that is harder to detect. It can change it's own code to achieve the same goal but have a different structure.

Explanation:

Answer 2

Answer:

Polymorphism is a feature of object-oriented

programming languages that allows a specific routine to use variables of different types at different times. Polymorphism is the ability of a programming language to present the same interface for several different underlying data types.

Explanation:

hope it helps


Related Questions

Why do chloroplasts appear only in plant cells and lysosomes appear only in animal cells?

Answers

Answer:

Both animal and plant cells have mitochondria, but only plant cells have chloroplasts. ... Because animals get sugar from the food they eat, they do not need chloroplasts: just mitochondria.

9.6 Code practice Edhesive

Answers

Answer:

N = [1,1,1,1,1],

[2,2,2,2,2],

[3,3,3,3,3],

[4,4,4,4,4]

def printIt(ar):

   for row in range(len(ar)):

       for col in range(len(ar[0])):

           print(ar[row][col], end=" ")

       print("")

           

N=[]

for r in range(4):

   N.append([])

   

for r in range(len(N)):

   value=1

   for c in range(5):

       N[r].append(value)

       value=value + 1

           

printIt(N)

print("")

newValue=1

for r in range (len(N)):

   for c in range(len(N[0])):

       N[r][c] = newValue

   newValue = newValue + 1

       

printIt(N)

Explanation:

I got 100%.

In this exercise we have to use the knowledge of computational language in python to write the code.

We have the code in the attached image.

The code in python can be found as:

def printIt(ar):

  for row in range(len(ar)):

      for col in range(len(ar[0])):

          print(ar[row][col], end=" ")

      print("")        

N = [1,1,1,1,1], [2,2,2,2,2], [3,3,3,3,3], [4,4,4,4,4]

for r in range(4):

  N.append([])

for r in range(len(N)):

  value=1

  for c in range(5):

      N[r].append(value)

      value=value + 1

printIt(N)

print("")

newValue=1

for r in range (len(N)):

  for c in range(len(N[0])):

      N[r][c] = newValue

  newValue = newValue + 1

printIt(N)

See more about python at brainly.com/question/26104476

The students start the school year with the same number of crayons and markers in their supply boxes. They count the number of these supplies remaining at the end of the school year. Here is a bar chart showing the data the students collected. Predict the three colors of crayons and markers the class will use the most next year.

Answers

Answer:

Hello :P AAAAAAAAAAAAAAAAAAAAAAAAA

BE CAREFUL OF SCAM LINKS HERE
check attached bcuz brainly freak block this

also i love u grammarly

Answers

Answer:

I know what the scam links look like and to be careful. Thanks for warning us though. Have a awesome day!

Explanation:

Answer:

have u watched euphoria

Explanation:

lol

JAVA

Write a method that takes an ArrayList of Strings, and an int numRepeats and returns a new ArrayList with the original ArrayList repeated numRepeats times.


For example if we had an ArrayList list with the values ["a", "b", "c"]:


repeatArrayList(list, 3)

Should return a new ArrayList with the elements:


["a", "b", "c", "a", "b", "c", "a", "b", "c"]


public ArrayList repeatArrayList(ArrayList list, int numRepeats)

{

}

Answers

Answer:

Explanation:

The following code is written in Java. It creates a function that takes in an ArrayList and an int parameter. Then it loops through the array and adds each element into a new array called newList but adds them the number of times that the numRepeats argument states. Output can be seen in the attached image below.

import java.util.ArrayList;

class Brainly{

   public static void main(String[] args) {

       ArrayList list = new ArrayList();

       list.add('a');

       list.add('b');

       list.add('c');

       ArrayList newList = repeatArrayList(list, 3);

       System.out.println(newList);

   }

   public static ArrayList repeatArrayList(ArrayList list, int numRepeats) {

       ArrayList newList = new ArrayList();

       for (int x = 0; x < numRepeats; x++) {

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

               newList.add(list.get(i));

           }

       }

       return newList;

   }

}

David plays racing games on his way to work. He uses the analog stick to navigate his vehicle through other artificial intelligence-controlled
opponents. On what platform is he playing the game?
A.console
В.personal computer
C.mobile
D.handheld

Answers

Answer: David is most likely playing on Handheld.

Explanation: You can infer that he is playing on a handheld due to the fact that he is playing this game on his way to work, and the fact that he is controlling the game using an analog stick. Because of this, you can assume that what he is playing on needs to be portable, making it likely he is using a handheld.

Answer:

d - handheld

Explanation:

PLATO

Suppose cell C5 contains the formula =B$6+C1.


Match each formula with its respective cell if you copied it.


=A$6+B4 =B$6+C6 =C$6+D2 =D$6+E1


Thank you, have a great week.

Answers

Answer:

=A$6+B4 will be in B8

=B$6+C6 will be in C10

=C$6+D2 will be in D6

=D$6+E1 will be in E5

Explanation:

$ sign is used to lock a certain column or row value, with the $ sign we can create an absolute reference which will remain unchanged as we copy our formula from one cell to another.

As formulars are copied, the references change respectively.

With =B$6+C1 in C5 ; As we move up or down of cell C5, only the row numbers will change that is formula in C6 becomes =B$6+C2.

As we move left and right, the column alphabet will also experience change like the rows did.

Only the absolute reference won't change no matter the direction.

Hence,

=A$6+B4 ; A and B means one move to the left of C5 and 4 signifies, 3 moves downward of C5 that gives B8

=B$6+C6 ; B and C means no horizontal change, 6 means 5 moves downward of C5 which gives C10

=C$6+D2 ; C and D means 1 move to the right and 2 means one move downward of C5 which gives D6

=D$6+E1 ; D and E means 2 moves to the right and 1 means no vertical change from C5 ; which gives E5

4. What is the difference between head tag and heading tag?​

Answers

Answer 515be559d883f8eab00011e5
head is the tag at the top of your page containing your meta-tags, styles, scripts and title. headings are the h1, h2, h3 etc tags that allow you to size your text. a is an anker usable in the url for navigating to other pages or as in-page navigation.

Which tab automatically becomes available after inserting a text box? Drawing Tools Insert Text Box Tools Shape Tools

Answers

Answer:

insert text box

Explanation:

Explanation:

format tab

Explanation: when you draw a text box a new tab called the format tab appears. it contains tools to design and format and modify the text box.

Find what the secret message is. Get Brainliest if you are fast and correct.

Answers

Answer:

What does your digital footprint say about you?

Explanation:

Just follow the path from the end to the start, that's how I always get mazes.

Answer:

What does your digital footprint say about you?

Explanation:

What does a computer program use as a means to evaluate a condition as True or False?

Answers

Answer:

true

Explanation:

Answer:

A Boolean expression.

Explanation:

A Boolean expression is a logical statement that is either TRUE or FALSE . Boolean expressions can compare data of any type as long as both parts of the expression have the same basic data type.

What is an "Expert System"?

If you can’t answer pls leave It

Answers

Answer:

program that use artifical intelligents

Explanation:

Expert system, a computer program that uses artificial-intelligence methods to solve problems within a specialized domain that ordinarily requires human expertise.

Which language paradigm interacts well with database systems in business environments that use SQL?

A) logic-based
B) fourth-generation
C) data-oriented
D) aspect-oriented

Answers

The answer is C, can you mark me brain

5.7 AP-Style MC Practice edhessive
In Fantasy Football, participants compete against one another by choosing certain players from different NFL teams that they think will do the best on any particular week. Top Fantasy Football players spend hours every day looking at huge databases of statistics related to the players and the teams often using spreadsheets and software tools to gain new insights and choose the best players. This process could be considered an example of which of the following?
(DATA MINING)

Students are using data collected from a non-profit organization to try to convince the school board that their school should be in session year-round with several week-long breaks as opposed to the usual 9 months on and 3 months off. Information that was collected by this organization was as follows.

The location of the school (city and country)
The number of students at the school
Whether it was year-round or had the normal 3-month summer break
Scores on standardized tests (AP, SAT, ACT, etc)
The student handbook of rules and regulations
Results from a survey from teachers and students about happiness level and motivation level
They decided to make an infographic in order to try to easily display the data they had analyzed. Which of the following would be the best information to put on their infographic to try to convince the school board to change the schedule?

Select two answers.
(Association rules showing links between motivation and happiness levels and the type of schooling students were receiving.)

(A regression analysis of standardized tests scores comparing the two different types of schooling.)

Which of the following terms describes the conversion of data, formatted for human use, to a format that can be more easily used by automated computer processes?

(Screen Scraping

Answers

Answer:

1. Data Mining

2. A regression analysis of standardized tests scores comparing the two different types of schooling. || Association rules showing links between motivation and happiness levels and the type of schooling students were receiving.

3. Screen Scraping

Explanation:

1. The data analyze big data sets to gain insight, which a person can't do, so it is data mining.

2. A regression analysis shows the mathematical relationship between two variables. Association rule mining finds features of data points which determine the results of other features.

3. Screen scraping generally refers to process recordings.

Which of these devices features D-pads and analog sticks? ASAP PLEASE
A. smartphones
B. portable consoles
c. PDAS
D. feature phones
E. tablets

Answers

Answer:

b. portable consoles

Explanation:

hope that helps :)

Answer:

b - portable consoles

Explanation:

PLATO

A student is writing a research paper about the poetry of the Harlem Renaissance. Which style guidelines will the
student most likely follow when writing about this topic?
-American Chemical Society (ACS)
-Modern Language Association (MLA)
-Council of Science Editors (CSE)
-American Psychological Association (APA)

Answers

Answer:

b

Explanation:

lesssss gooo CLOUWT

The style guidelines that the student is most likely to follow when writing about the poetry of the Harlem Renaissance is Modern Language Association (MLA). The MLA style is commonly used for writing in the humanities, including literature, language, and cultural studies.

What is Modern Language Association (MLA)?

The Modern Language Association (MLA) is a professional organization for scholars of language and literature. It is mainly focused on the study and teaching of languages and literature, particularly in the United States.

The MLA publishes several academic journals, including the flagship journal PMLA (Publications of the Modern Language Association of America), and produces a well-known academic writing style guide called the MLA Handbook for Writers of Research Papers.

This handbook provides guidelines for how to format academic papers and how to properly cite sources in research writing.

To know more about Modern Language Association (MLA):

https://brainly.com/question/2031731

#SPJ2

20 POINTS-
can someone help with this?

Answers

Answer:

large storage= data warehouse

data from daily= world wide

data storaage= transactional

online data= relational

I rlly don't know I'm kinda guessing here for don't take my word to heart it's been a bit since I've learned this

Which game would be classified as an advergame?
A.
Tomb Raider
B.
Fifa Soccer
C.
Prince of Persia
D.
Flower

Answers

Answer:

B. Fifa Soccer

Explanation:

That should be your answer.

can someone tell me what to do i’m kinda stuck and don’t know what he’s telling me to do pls ill give brainlist and points

Answers

Answer:

Well a debtor is basically someone owing someone money, basically someone in debt. He’s telling cup head boy to take care of the people who owe him or someone else their or his money. Thats basically it.

Hardware refers to programs and protocols used on a computer system.

True
False

Answers

Answer:

False

Explanation:

Answer:

false

Explanation:

i JUST took the quiz

Each contestant auditioned her singing voice for the pageant. Participle: Word it Modifies:​

Answers

Answer:

participle is singing

word it modifies is voice

Which print preview of your slide show includes a notes section for your audience?

Answers

Answer:

I would say the one on the left side, have a good day! :)

Explanation:

I hope this helps! :)

Sam is a Windows system administrator responsible for setting up client workstations for different departments. After installing the operating system, Sam manually disables certain programs that aren't needed by that department. Recently, Sam learned a few workstations had been compromised. The security analyst suggests that the disabled applications may have been the target. Going forward, what should Sam change in his process

Answers

Answer:

not disable any programs after installing a new operating system

Explanation:

Sam should simply not disable any programs after installing a new operating system. If the system is working as intended then he should leave it be, as the saying says "Don't fix what isn't broken". When a new operating system is installed, the entire system is usually wiped, meaning that the only programs installed have been installed as defaults by the operating system. Usually, this is for a reason and acts as security measures for the user, the system, and all of the data. Most of these programs interact with each other and work off of each other's data. Removing them from the system can prevent other very important functions of the operating system from performing their duties, which in term can compromise the entire security of the system. Therefore, the best thing to do would be to not remove these default programs.

Twenty staff members will be doing data entry activities from 10 p.m. to 3 a.m. on a regular basis. You could check if a given operating system will handle this activity by performing _____.

soak testing.
stress testing
load testing
spike testing

Answers

Answer:

load testing

Explanation:

to see if the activity can handle under performance

3. Maria is in charge of consolidating the names of the participants of the two-day virtual
seminar. She wants to arrange the names alphabetically using MS Excel. Which of the following is
the correct sequence of steps in sorting text?
1. Click the Sort & Filter command. A drop down menu appears.
11. Choose Sort A to Z.
III. Select the cell range needed to be sorted.
IV. Go to the Editing Styles group of Home Tab.
A. I, II, III and IV
C. III, IV, I and I
B. II, II, IV and I
D. IV, l, ll and I​

Answers

Answer:

The correct sequence of steps in sorting text is;

III, IV, I and II

Which is option 'C' where the last item is II

C. III, IV, I and II

Explanation:

Sorting is the orderly arrangement of items (data) according to a specified criteria such as arranging a list of items alphabetically or a numerical arrangement of a data collection

Filtering is the selection for display, data that meets a specific condition

To arrange the names of the participants of the two-day virtual seminar alphabetically using MS Excel the sequence of steps are;

1. Select the rows or columns the are to be sorted by using steps for selecting  rows and/or columns

2. Go to the Editing group of the Home Tab ribbon

3. Click on (the down arrow besides) the Sort & Filter command icon to display a drop down menu with options for type of sorting and filtering

4. Choose Sort A to Z to sort the contents of the cell range in increasing alphabetical order

Therefore, the correct sequence of steps are;

III. Select the cell range needed to be sorted

IV. Go to the Editing Styles group of the Home Tab

I. Click the Sort & Filter command. A drop down menu appears

II. Choose Sort A to Z.

The correct sequence is III, IV, I and II.

1. What is a Network?

A.an arrangement of intersecting horizontal and vertical lines.

B.a group or system of interconnected people or things.

C.files on a computer

D.a device drive used to carry information




Answers

B. a group or system of interconnected people or things

If a citation has a volume, title, and page numbers, it is a:

journal article citation

book citation

website citation

amphlet citation

Answers

Answer:

It has to be Journal Article Citation

Explanation:

Columns are identified by numbers (1,2,3,4,5....) and Rows are identified by letters (A,B,C,D,E.....) True False

Answers

The answer would be true. Hope this helps you

This type of peripheral is used to interact with, or send data to, the computer.


Answers

Answer:

Input

Explanation:

PLEASE HELP ME ASAP I HAVE AN EXAM SOON!!!!

My ET-2600 printer isn't working. Black and white pages aren't printing, and if I try to print a BW page, it only print a blank sheet of paper.

How to fix?! I have checked the nozzle thingy on the app.

Answers

Answer:

try seeing if the nozzle of the cartridge is clogged

Explanation:

Other Questions
63/4 divided by 41/2 Pheobe had 6 keys. She paid with a $10.00 bill and received $3.28 change. How much did it cost to have EACH key made Why is inflation considered an economic problem? please refrain from irrelevant answers. Malia owns 1 out of 3 gas stations in Jasper. In Webster, Abby owns 6/25 of the gas stations. Who owns a greater fraction of gas stations in her area?Malia or Abby? solve: 4(n-7) -2 (n+3)-15n The measure of ZPQS is 180. The measure of ZRQS is 30.R30PSWhat is the measure of ZPQR?A. 60B. 120C, 150D. 210 Three Methods for Choosing JudgesAt the federal level, judges are nominated by the President and then those nominees have to be approved by the Senate. The U.S. Constitution does not specify how states can choose their judges so different states use different methods. The three most common methods used by states are listed below:Method 1: Direct elections - Candidates raise money and campaign to be a judge. The voters then elect one of the candidates.Method 2: Appointment - In this method, state judges are appointed by the Governor. There is often no legislative approval required. A couple of states have the state legislature appoint judges, but usually it is the Governor.Method 3: The Missouri Plan - This is a compromise between methods 1 and 2. In the Missouri Plan, the governor appoints judges, but the governor must make each appointment from a list of three candidates recommended by a judicial nominating commission. The commission is made up of a sitting judge, several legal experts, and some private citizens. Each judge named by the governor serves until the next election. The judge's name then appears on the ballot without opposition. The voters decide, in a yes-no vote, whether or not that judge should be kept in office. Should the voters reject a sitting judge, the process begins again.Read the information above about the three methods most commonly used to select judges at the state level. Pick the method that you believe is the best. Write a paragraph persuading your fellow Ohioans that Ohio should start using this method. If you agree with how Ohio already chooses its judges, then persuade a different state to use our current method. Your essay needs to provide three (3) arguments supporting your method of choice, and you need to back these arguments up with supporting details. For example, you could use constitutional principles to back up your arguments.plz help Why is a sonnet an effective way for Romeo and Juliet to speak when they first meet? Edna needs a safer car to drive. She likes to travel a lot, so she is looking for a small SUV. She is trying to decide between buying a new or used car. After doing some research, she finds out that most cars lose value each year by a process known as depreciation. You may have heard before that a new car loses a large part of its value in the first 2 or 3 years and continues to lose its value, but more gradually, over time. That is because the car does not lose the same amount of value each year, but it loses approximately the same percentage of its value each year. What kind of model would be most useful for calculating the value of a car over time? Whats the slope of (-1,5) and (-2,-4) What did Peter the Great do for Russia?A. provided one language for the countryB. ruled with terrorC. improved the conditions of the peopleD. united Russia into one country I already know it is false but how do I correct it? Define self awareness and factors that you may consider to develop your self awareness Write a program that prompts the user to enter their name store this value in a variable called name Prompt the user for their current age store this value in a variable called Create a variable dogAge which takes the age entered and multiplies by 7 Print to the screen Your name is" name "and in dog years you are" dogAge "years old" To join multiple parts together in a print statement use commas: print (Your name is", name, "and in dog years you are", dogAge) Which statement accurately describes the U.S. economy during the 1920s? Which geographic factor explains why North Korea must import food? Why is this a difficult foreign policy task? Please help! :') Five-year-olds are ready for:Preschool.Kindergarten.First grade.Three-step instructions.Storytelling. Which of the following best describes how Zimbabwe won majority rule? PLEASE HELP ME TIMED QUIZWhich of the following is not a factor in determining population size?a.the food supplyb.birth ratec.available nichesd.detritivore activityPlease select the best answer from the choices providedABCD Perimeter = 26 yards