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 is array in data structure with example?
What is a reverse linked list.
Is linked list faster than array?
Can we create a null as a key for a map collection?
How is bubble sort done?
What is the time complexity of arraylist and linked list?
How efficient is binary search?
What is complete binary tree in data structure?
What is structure of data type?
What is a undirected graph?
Is heap sort adaptive?
Which data structures are used in bfs and dfs algorithm?
What is the use of bubble sort?
What are the 3 control structures in programming?
Differentiate between push and pop?