What is RunTime Polymorphism?

Answers were Sorted based on User's Feedback



What is RunTime Polymorphism?..

Answer / om namo bhagavathe vasudevaya

polymorpism is of two types
1)compile time polymorpism 2)run time polymorpism

compile time polymorpism:-it can call the functions during
compile time example:-opporator overloading
in the operater overloading based on the parameters and
return type of the functions are called

runtime polymorpism:-it can call functions during runtime
example:-opporator overridding
in opperator overridding the functions in both base class
and derived class have same signature(same parameters type
and same return type) based on the object used appropriate
method will be called

Is This Answer Correct ?    59 Yes 5 No

What is RunTime Polymorphism?..

Answer / suren

Function, Constructor, Operater overloading comes under
compile time polymorphism and function overriding, virtual
functions come under runtime polymorphism.

Is This Answer Correct ?    38 Yes 6 No

What is RunTime Polymorphism?..

Answer / 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

What is RunTime Polymorphism?..

Answer / lalit dhuwe

Polymorphism is defined as one interface to control access
to a general class of actions. There are two types of
polymorphism one is compile time polymorphism and the other
is run time polymorphism. Compile time polymorphism is
functions and operators overloading. Runtime time
polymorphism is done using inheritance and virtual
functions.

Is This Answer Correct ?    3 Yes 6 No

What is RunTime Polymorphism?..

Answer / param

I am fresher and i am listening to this word 1sttime.

Is This Answer Correct ?    9 Yes 16 No

Post New Answer

More Dot Net General Interview Questions

How inheritance works in .net?

1 Answers  


What is the root class in .net?

1 Answers  


What is the difference between a class and an object, and how do these terms relate to each other?

1 Answers  


Explain acid properties?

1 Answers  


.What is Marshaling?

2 Answers  


Please explain what is the difference between a class and an object?

1 Answers  


Write code for fetch record nos 15 to 25 from a dataset containing 50 records?

4 Answers   C Squared Systems,


What is a Strong Name?

1 Answers  


How many types of generations are there in a garbage collector?

1 Answers  


What are Attributes in .NET?

1 Answers  


How do you define the lease of the object?

1 Answers  


DateTime[] dt = new DateTime[10] for(i=0; i<10; i++) { dt[i] = DateTime(2008, 1, i+1) } How many heap object will be created for the above array. Choose the correct answer below. Ans: 1, 10, 11, 12

3 Answers  


Categories