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

Define threaded binary tree. Explain its common uses

683


What are data structures in programming?

739


What are different sorting algorithms?

694


Differentiate between hashset and hashmap.

718


Can you list out the areas in which data structures are applied extensively?

825


Now you are given an array of a characters (both ASCII and Kanji) and, an index into the array. The index points to the start of some character. Now you need to write a function to do a backspace (i.e. delete the character before the given index).

741


What is stack explain with diagram?

712


Explain the Queue

772


What sort of serious problems have you experienced, and how have you handled them?

785


What do you understand by stable sort?

708


Write code for reversing a linked list.

748


Does hashset maintain order?

694


What is copyonwritearraylist?

758


What is Jagged Arrays?

758


What is list and types of list?

675