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

What do you mean by data and data structure?

504


By Which algorithm, the 8 queens problem is solved?

510


What is a data structure node class?

502


Which is faster binary or linear search?

485


Define a binary tree?

562






which is the simplest file structure? (Sequential, indexed, random)

787


Write any two principles of gradation of structures.

591


Is array immutable?

509


Explain the Queue

583


How would you swap the Kth node from beginning with Kth node from end in a Linked List.

566


What is treemap chart?

494


What are the pre-requisite for the collection to perform binary search?

503


What is pivot in quicksort?

489


Explain binary tree traversals?

507


Can a null element added to a treeset or hashset?

469