Difference ways of Polymorphism?
Answers were Sorted based on User's Feedback
Answer / zeeshan
Polymorphism can be achieved by two ways:
1.Overloading 2.Overriding
1.Overloading: Overloading means methods have same name but
different arguments it can be achieved at Compile Time.
1.Overriding: Overloading means when we make method virtual
in base class and we also want that it also used in child
then we use override keyword for that method and and it can
be achieved at Run Time.
| Is This Answer Correct ? | 21 Yes | 1 No |
Answer / siva sankari
lets take some eg:
6+3=9 //here '+'operator used as addition
siva+sankari=sivasankari //here '+' operator used as
concatenation
the same function which acts as diff place in diff meaning
is called polymorphism............
| Is This Answer Correct ? | 2 Yes | 0 No |
Answer / sanjeevkumar.v
polymorphism it means the function may be different . and so
that are different forms
| Is This Answer Correct ? | 2 Yes | 9 No |
What are generic functions and generic classes?
What is multilevel inheritance?
What is a friend function & its advantage?
What is multiple inheritance? Give Example
i am getting an of the type can not convert int to int *. to overcome this problem what we should do?
What is an orthogonal base class?
What do you mean by stack program? Get me an example stack program?
Why is there no multiple inheritance?
What is the full form of oops?
What is polymorphism give a real life example?
What is the default size allocated for array in the statement if size not specified " int a[] "
what is the usage of clas templates