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
Interop Services?
What is RPC? What is the use of it?
What is the use of immutability?
Is atl redundant in the .net world?
Explain about the Common Language Runtime?
Tell me about secure socket layer? How to make use of the technology?
How to implement CAS in .Net?
What is class library in .net
A developer company sends dlls to the client. Some client is not happy current functionality, so request some modification. Developer made some changes and send new dll to all clients. Some client is happy with old version, tell me minimal change to so that neither clients get affected?
Explain what is an interface and what is an abstract class? Please, expand by examples of using both. Explain why?
What is the reason of occurring overflow-underflow arithmetic exception error, it shows error message when we run our program by adding control?
Explain how does assembly versioning work?
Explain what relationship is between a process, application domain, and application?
What is difference between .net and .net core?
Write a program to create a user control with name and surname as data members and login as method and also the code to call it.