What Is a Polymorphism? How many types of polymorphism and
whats that use in application?
Answers were Sorted based on User's Feedback
Answer / scarlet
the ability of general request to get different result is
polymorphism.the 3 types are function overloading,operator
overloading,virtual functions.application-allows object to
show different identities and results at run time.
| Is This Answer Correct ? | 2 Yes | 1 No |
Answer / khan
Poly mean many mphorm mean form, polymorphism mean use an entity in many forms. there are two types of polymorphism
1. Static Polymorphism
2. Dynamic Polymorphism
1. Static polymorphism is also called as Compile Time polymorphism. In Static polymorphism methods are overloaded with same name but having different signatures.So it is called as method overloading.
2.Dynamic polymorphism is also called as Run Time polymorphism. In this type of polymorphism methods have the same name, same signature but different in the implementation.
In Dynamic polymorphism methods are overridden so it also called as method overriding.
| Is This Answer Correct ? | 1 Yes | 0 No |
#include <iostream> using namespace std; struct wow { int x; }; int main() { wow a; wow *b; a.x = 22; b = &a; a.x = 23; cout << b->x; return 0; }
what is a ststic variable and stiticfunction briefly explain with exmple and in which case we use
1.what are two type of classe members called? 2.what is data hiding and data encapsulation? 3.how do you make a class member visible aouside its class? 4.what is the default visibility of a class data member? 5.what are the advantages of oop over the structured programing?
Have you ever interfaced with a database?
What are the three parts of a simple empty class?
#include <iostream> using namespace std; int main() { int a = 3; int c[5][5]; for (int x=0;x<5;x++) { for (int y=0;y<5;y++) { c[x][y] = x*y; } } cout << c[a][2]; }
What is polymorphism explain its types?
What is the diamond problem in inheritance?
What does it mean when someone says I oop?
What is the difference between const int *ptr and int const *ptr???
What is the difference between XML Web Services using ASMX and .NET Remoting using SOAP?
Why many objects can working together? How objects working togetherM I want to see example code.