Answer Posted / rajdeep gupta
to call the overloaded function via object is known as
polymorphism.There are two types of polymorphism
1-Dynamic polymorphism
2-static polymorphism
static polymorphism(early binding)
there in only one class is sufficient to call the overloaded
function.it is predefine that which function want to be call.
that means the linking between function call and object is
resolved at compile time is known as static polymorphism.
dynamic polymorphism(late binding)
class model should be based on inheritance model.virtual
function is used for it.
that means the linking between function call and object is
resolved at run time is known as dynamic polymorphism.
| Is This Answer Correct ? | 3 Yes | 0 No |
Post New Answer View All Answers
What does no cap mean?
Why do pointers exist?
when to use 'mutable' keyword and when to use 'const cast' in c++
Why is polymorphism needed?
Explain the concepts involved in Object Oriented programming.
INSTANCE FIELDS DECLARED private ARE ACCESSIBLE BY THE METHODS ONLY.CAN WE CHANGE THE private FIELD OF AN OBJECT IN A METHOD OF SOME OTHER OBJECT OF THE SAME CLASS?
What is difference between polymorphism and inheritance?
Why do we use oop?
Why is static class not inherited?
write a code for this. serial_number contained in the header of the file will be read , if this serial number is less than a previous serial number within a successfully processed file, or is the same as another serial number within a successfully processed file, or if the field contains anything other than 7 digits, then the file must error with the reason ‘Invalid SERIAL_NUMBER’.
What is class in oop with example?
Can a destructor be called directly?
When not to use object oriented programming?
Write a program to sort the number with different sorts in one program ??
What are the 3 principles of oop?