C Interview Questions and Answers: What Is A Macro, and How Do You Use It?
C Interview Questions and Answers: What Is A Macro, and How Do You Use It?
C Interview Questions and Answers: What Is A Macro, and How Do You Use It?
[C Frequently
What is Polymorphism ?
'Polymorphism' is an object oriented term. Polymorphism may be defined as the
ability of related objects to respond to the same message with different, but
appropriate actions. In other words, polymorphism means taking more than one
form. Polymorphism leads to two important aspects in Object Oriented terminology
- Function Overloading and Function Overriding. Overloading is the practice of
supplying more than one definition for a given function name in the same scope.
The compiler is left to pick the appropriate version of the function or operator based
on the arguments with which it is called. Overriding refers to the modifications
made in the sub class to the inherited methods from the base class to change their
behavior.
What is the difference between run time binding and compile time binding?
Dynamic Binding :
The address of the functions are determined at runtime rather than @ compile time.
This is also known as "Late Binding".
Static Binding :
The address of the functions are determined at compile time rather than @ run
time. This is also known as "Early Binding"