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

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



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is the top of a stack?

511


You are given a singly linked list. How would you find out if it contains a loop or not without using temporary space?

685


What is difference between linear and non linear data structure?

569


Is quicksort divide and conquer?

499


Differentiate between iterator and listiterator.

627






Check if duplicates exist in an array of N which has range 1 to N.

541


What is the purpose of thread?

502


Does list maintain insertion order?

476


Describe the level term in a tree.

532


Difference between arrays and linked list?

541


What is the quickest sorting algorithm?

536


What is merge sort and how it works?

481


What is meant by binary tree traversal?

557


What are the goals of data structure?

700


What are scalar values?

492