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 interface in oop?
assume the program must insert 4 elements from the key board and then do the following programs.sequential search(search one of the elements),using insertion sort(sort the element) and using selection sort(sort the element).
sir plz send me a set of questions that been frequently held in written examination during campus selection.
State what is encapsulation and friend function?
How many types of access specifier in c# and vb.net?
i ahve v low % in 12th n BSC which is aroun 50 coz science was imposed on me......nw m doin MCA n my aggregate in above 74%,what shud i say if asked about low previous percentage??????
sir i want to know which posting to apply since i am BE CSE.. also want to know what are the rounds there for my interview...Expecting for ur valuable answer....
What is an advantage of polymorphism?
What is for loop and its syntax?
Can destructor be overloaded?
Can static class have constructor?
What does I oop mean?