What are the different types of polymorphism?
Answers were Sorted based on User's Feedback
Answer / dee
compile time--->operator and function overlaoding
run time --->virtual
| Is This Answer Correct ? | 8 Yes | 3 No |
Answer / mms zubeir
There are two types of polymorphism.
1. Adhoc polymorphism (Overloading, templates).
2. Parametric polymorphism(Overriding).
If the behaviors are finite and known before its usage, it
is adhoc polymorphism. These bindings are done at
compilation itself and hence called compile time binding.
If the behaviors are infinite and known only at run time at
the time of use, it is parametric polymorphism. These
binding can be mapped at run time only and hence sometimes
referred as run time binding.
Note:- Virtual mechanism is used to resolve conflicts in
overriding polymorphically. Virtual mechanism itself
doesn't provide any polymorphism rather the overriding
leads to run time polymorphism.
| Is This Answer Correct ? | 4 Yes | 7 No |
Answer / uio
there are two types of palymorphism
1.operator overloading
2.function overloading
| Is This Answer Correct ? | 2 Yes | 6 No |
What is a tuple c++?
What are the methods of exporting a function from a dll?
What is c++ hash?
Am pass the 10000 records to target in target I will take commit interval 15000 when I was stop the work flow what will happened
Evaluate: int fn(int v) { if(v==1 || v==0) return 1; if(v%2==0) return fn(v/2)+2; else return fn(v-1)+3; } for fn(7); a) 10 b) 11 c) 1
What is data abstraction? How is it different from data encapsulation?
Explain how would you handle a situation where you cannot call the destructor of a local explicitly?
What are its advantages and disadvantages of multiple inheritances (virtual inheritance)?
What is fixed in c++?
Is c++ vector a linked list?
If we want that any wildcard characters in the command line arguments should be appropriately expanded, are we required to make any special provision? If yes, which?
Is atoi safe?