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
Mila [183]
3 years ago
15

Polymorphism means ______________.

Computers and Technology
2 answers:
EleoNora [17]3 years ago
8 0

Answer:

(c) that a variable of supertype can refer to a subtype object.

Explanation:

<em>Polymorphism</em>, in the real sense of it, means appearing in different forms. In the programming concept, the same object can hold different data types depending on its reference. A function can take different kinds of arguments at different situations and process them accordingly. So when a variable of supertype can refer to a subtype object, polymorphism is at work.

However, when data fields are declared private (as in option a), then we have <em>encapsulation</em>.

Also, when a class can extend another class (as in option b), we have <em>inheritance </em>in action.

When a class contains another class (as in option d), we have a <em>nested class .</em>

Westkost [7]3 years ago
5 0

Answer:

Polymorphism means that a variable of supertype can refer to a subtype object.

Explanation:

For example, in Python programming language, a function that accepts an iterable object uses the concept of polymorphism because that function can accept strings, lists, tuples as arguments.

You might be interested in
What type of machine is the energy of a seismic wave recorded?
Sloan [31]
<span>the answer is most likely "Seismograph"</span>
7 0
3 years ago
I need a 2's partner in rl if you're silver or gold. or any rank to just chill with
Semenov [28]

Answer:

I'm a beginner but I go you!

Explanation:

5 0
2 years ago
What's an array in computer science
muminat

Answer:

An array is a series of memory locations – or 'boxes' – each of which holds a single item of data, but with each box sharing the same name. All data in an array must be of the same data type.

6 0
3 years ago
Write an application program in C++ to implement a class Fibonacci to print Fibonacci series upto N using member function series
fiasKO [112]

Answer:

Program approach:-

  • Using the header file.
  • Using the standard namespace I/O.
  • Define the main function.
  • Display the number of terms.
  • Display the Fibonacci series.
  • Print the first two numbers.

Explanation:

Program:-

//header file

#include <iostream>

//using namespace

using namespace std;

//main function

int main() {

   int n, s1 = 0, s2 = 1, nextTerm = 0;

//display the number of terms

   cout << "Enter the number of terms: ";

   cin >> n;

//display the Fibonacci series

   cout << "Fibonacci Series: ";

   for (int j = 1; j <= n; ++j) {

       // Prints the first two terms.

       if(j == 1) {

           cout << s1 << ", ";

           continue;

       }

       if(j == 2) {

           cout << s2 << ", ";

           continue;

       }

       nextTerm = s1 + s2;

       s1 = s2;

       s2 = nextTerm;

       

       cout << nextTerm << ", ";

   }

5 0
3 years ago
Which best describes the benefits of renting a home?
Slav-nsk [51]
<span>The benefits of renting a home are many. Renting can be less expensive, for example, your rent might even cover utilities. If a person moves frequently or may not be planning on staying in the area, renting is beneficial because they can just leave when the lease is up instead of having to sell a home. Frequently, the owner of the property is responsible for many repairs - such as plumbing and electric work. There is also less care involved when renting apartments or condos because the management will take care of things like the landscaping and repairing driveways.</span>
7 0
3 years ago
Other questions:
  • Given that it takes 0.08 ms to travel from one track to the next of a hard drive; that the arm is originally positioned at Track
    6·1 answer
  • Fordham3 Hardware is known for its consensus buying center culture. Recognizing this corporate culture, someone attempting to se
    8·1 answer
  • Which address correctly represents one that is composed of two halves, one assigned to a network adapter manufacturer, and the o
    6·1 answer
  • Which query will give the following result when it it applied on table 1????!!!!!
    10·1 answer
  • Which of the following best describes a toolbar?
    7·1 answer
  • Write a program that asks the user to enter the amount that he or she has budgeted for a month. A loop should then prompt the us
    11·1 answer
  • When trying to remember a list of words, a person may choose a word to which they "hang" their memories on. This type of mnemoni
    11·1 answer
  • Most of the Desktop games contain a backdoor used to test and update the game.
    14·1 answer
  • What bonnie is this? From five night at freddys
    9·1 answer
  • You are the administrator for the ABC Company. You are looking to install Windows Server 2016, and you need to decide which vers
    13·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!