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
What do you mean by data and data structure?
By Which algorithm, the 8 queens problem is solved?
What is a data structure node class?
Which is faster binary or linear search?
Define a binary tree?
which is the simplest file structure? (Sequential, indexed, random)
Write any two principles of gradation of structures.
Is array immutable?
Explain the Queue
How would you swap the Kth node from beginning with Kth node from end in a Linked List.
What is treemap chart?
What are the pre-requisite for the collection to perform binary search?
What is pivot in quicksort?
Explain binary tree traversals?
Can a null element added to a treeset or hashset?