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
What is the advantage of .net?
What is .net3.5?
Please explain what is the .net framework and how does it work?
What is WSDL? Explain its architecture?
Explain is the jit an interpreter?
What is a variable of implicit type and what is its scope?
What is a strong name in .net?
How do you turn off cookies for one page in your site? Give an example.
How can I find out what the garbage collector is doing?
What is the benefit of .net core?
How is .net able to support multiple languages?
Differentiate between 'DataSet' and 'SQLDataReader' in ADO.NET?
I have a problem in installing visual Studio 2008 on PC that have Celeron Processor ? afterAll InstallionFaied . Pls suggest me . Is it possible or not .if Yes then How ?
What does mean by .net framework?
What is value type and refernce type in .net?