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
How many pointers are necessary to implement a simple linked list?
What is the purpose of thread?
Why is the isempty() member method called?
What are the pre-requisite for the collection to perform binary search?
What is array define its types?
How do hash tables work?
Why is reflection slower?
Is data structures and algorithms important?
Does arraylist maintain order?
How would you use bsearch() function to search a name stored in array of pointers to string?
What are the major data structures used in the following areas : network data model & hierarchical data model?
Who invented data structure?
Is hashtable throw concurrentmodificationexception?
How do you make a bubble chart with 3 variables?
Why is data structure used?