write a program which best describes polymorphism in real
world?
Answers were Sorted based on User's Feedback
Answer / renjitha r kumar
single man behave differently in differnt situations
| Is This Answer Correct ? | 21 Yes | 2 No |
Answer / sujay
two person with same name say XXX but they have different
initials(father) which is one of the example or the real
world polymorphism
| Is This Answer Correct ? | 18 Yes | 4 No |
#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]; }
how to get the oracle certification? send me the answer
difference between structure and union.
What is the use of oops?
Why is it so that we can have virtual constructors but we cannot have virtual destructors?
can inline function declare in private part of class?
How is data security provided in Object Oriented languages? ?
for example A,B,C,D are class all the 4 class contain one method who() but the method who() implementaion is differnet among each class. the relation among the 4 class are A is base class and is inherited by B and C.and from this two B and C where D is inherited. the question is i want to display the output who() method in all the classes(A,B,C,D)the output of who() method is diferrent amond all the class(A,B,C,D) ------A------ virtuval who(print a) override | | who(print b) B C override who(print c) | | -------D------ override who(print d)
what are the ways in which a constructors can be called?
What is encapsulation c#?
what is function overloading..?
Describe these concepts: Polymorphism, Inheritance and Abstraction.