difference between the run time polymorphism and compile
time poly morphism and about virtual function.

Answers were Sorted based on User's Feedback



difference between the run time polymorphism and compile time poly morphism and about virtual funct..

Answer / sangita pradhan

Compile time polymorphism(Static polymorphism) means
basically those language structure which will cause the
compiler to produce code at the compile-time. That is, the
compiler is well aware that what code is to be generated at
the compile-time itself: Ex: overloading of operators,
functions.

Run time Polymorphism(Dynamic Polymorphism)means that the
compiler is unaware what code is to be generated so it binds
the possible code and let the program decide it at the
run-time itself.Ex: the virtualness of a class member or the
entire class itself.

Is This Answer Correct ?    79 Yes 7 No

difference between the run time polymorphism and compile time poly morphism and about virtual funct..

Answer / sitaram

The object can be binded at the time of compiling is known
as compiletime polymorphism

The object can be binded at the time of running is known as
running polymorphism

Is This Answer Correct ?    10 Yes 0 No

Post New Answer

More Data Structures Interview Questions

Can we add or delete an element after assigning an array?

0 Answers  


What is data and data types?

0 Answers  


For searches. Which one is most preferred: array list or linked list?

0 Answers  


Can sets contain duplicates?

0 Answers  


What is complexity of quicksort?

0 Answers  


How do you balance a tree?

0 Answers  


Define level of the tree?

0 Answers  


Is linked list faster than array?

0 Answers  


Which algorithm is used in collections sort method?

0 Answers  


What is faster array or arraylist?

0 Answers  


How many types of arrays are there in visual basic?

0 Answers  


Which type of sorting is best?

0 Answers  


Categories