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 is multiple inheritance? Give Example
What is virtual destructor? Why?
3 Answers Agile Software, College School Exams Tests, CSC,
Finding of the 4 larger (bigger) numbers from the list like{1245,4587,2145,1163,29987,65783.....}
What is operator overloading? Give Example
11 Answers CTS, IBM, TCS,
what is data abstraction with example.
What is polymorphism in oops?
How to handle exception in c++, For example in a functions i am assigning memory to some variables and also in next instructions in am dividing one variable also. If this functions generates a error while allocating memory to those variable and also while dividing the variable if i divide by zero then catch block how it will identify that this error has cone from perticular instruction
What is a null tree?
What is conditional Compilation?
What is overriding in oops?
what is difference between String s=new String("vali"); String s="vali"
Can we define a class within the interface?