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
which notations are used in evaluation of arithmetic expressions using prefix and postfix forms?
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.
What should be done in the base case for this recursive problem?
Are linked lists considered linear or non-linear data structures?
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
Can hashset contain null?
What are the applications of stack?
what is the primary advantage of a linked list?
Reverse a linked list from the middle.
What is meant by linked list?
Is collection a class or interface?
What is hash data type?
Define the term “percolate up”?
Can we apply binary search algorithm to a sorted linked list, why?
Can arraylist store objects?