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

which notations are used in evaluation of arithmetic expressions using prefix and postfix forms?

745


An array having 100 elements have numbers from 1 to 99 randomly out of which any number is repeated. Find the repeated number in minimum time and space complexity.

945


What should be done in the base case for this recursive problem?

700


Are linked lists considered linear or non-linear data structures?

771


Traverse the given tree using Inorder, Preorder and Postorder traversals. Inorder : D H B E A F C I G J Preorder: A B D H E C F G I J Postorder: H D E B F I J G C A

865


Can hashset contain null?

710


What are the applications of stack?

694


what is the primary advantage of a linked list?

1118


Reverse a linked list from the middle.

718


What is meant by linked list?

672


Is collection a class or interface?

692


What is hash data type?

715


Define the term “percolate up”?

714


Can we apply binary search algorithm to a sorted linked list, why?

712


Can arraylist store objects?

658