What is RunTime Polymorphism?
Answer Posted / ansar hussain.m
Polymorphism means one object behaving as multiple forms.
simple one in many forms .
there are two types of poly morphism
1) compile time
2) runtime
1)compile time:
overloading a method , constructor , operator etc.. comes under compile time polymorphism because compiler checks the type and number of parameters passed on to the method and decides which method to call at the compile time itself and it will give an error if there are no method that matches the method signature of the method that is called at the compile time itself
2) runtime polymorphism:
overriding comes under runtime polymorphism because the compiler would not be aware of the method is available for overriding the functionality or not. so compiler would not give any error at compile time. At runtime it will be decided which method to call. and if there is no method at runtime it will give an error
| Is This Answer Correct ? | 26 Yes | 1 No |
Post New Answer View All Answers
Explain something about WebService?
How can I get at the win32 api from a .net program?
Difference between user groups and code groups
How many design patterns can be created in .net?
How many types of design patterns available in .NET?
What does cil do?
Explain about .net?
In code behind class, name the type of code found. Is it the server side code or client side code?
What are .net applications?
Explain why do we use msmq?
Explain what is the difference between odbc and ado?
Explain what relationship is between a process, application domain, and application?
What is a .net class?
How do you turn off cookies for one page in your site? Give an example.
What is singlecall activation mode used for in .net?