answersLogoWhite

0

Polymorphism is the ability to use an operator or function in different ways. Polymorphism gives different meanings or functions to the operators or functions. Poly, referring to many, signifies the many uses of these operators and functions. A single function usage or an operator functioning in many ways can be called polymorphism. Polymorphism refers to codes, operations or objects that behave differently in different contexts.

User Avatar

Wiki User

14y ago

What else can I help you with?

Related Questions

Is overriding a dynamic polymorphism in c plus plus or not?

In C++, overriding and function, method, or operator is a different thing than (dynamic) polymorphism, so overriding a polymorphic method is almost entirely possible.


What are the concepts of object oriented programming in c plus plus?

The concepts of OOP in C++ are the same as for OOP in any other programming language: abstraction, encapsulation, inheritance and polymorphism.


Does c language support polymorphism?

C++ does.


What are the main features of OOP in c plus plus?

The main features of OOP are the same regardless of the language. They are: encapsulation; data hiding; inheritance; and polymorphism.


Define compile time polymorphism with short examples?

compiler can decide which form of the object should be invoked during compile time.this type of polymorphism is know as compile time polymorphism


What are the various concepts of c plus plus?

1.Classes and Objects 2.Constructors and Destructors 3.Inheritance 4.Polymorphism 5.Dynamic Binding


How do you write a macro to find the biggest of 3 numbers in c plus plus?

#define biggest (a) > (b) && (a) > (c) ? (a) : (b) > (c) ? (b) : (c)


Is there a file concept in c plus plus?

No. The standard does not define nor require a file concept.


How do you find a largest algorithm in c plus plus?

#define max (a, b) ((a) >= (b)) ? (a) : (b)


If a plus b plus c not equal to 0 then a divided by b plus c equals b divided by c plus a equals c divided by a plus b prove that a equals b equals c?

Because there is no way to define the divisors, the equations cannot be evaluated.


Why is c plus plus regarded as being a hybrid language?

C++ is regarded as hybrid because it is both procedural and objected oriented. A pure c program can be compiled and run on a c++ platform. At the same time, c++ also provides object oriented features like classes, polymorphism, encapsulation, abtraction, etc.


Define protected in c plus plus?

Protected members are like private members, but are also accessible to derived classes.