Answer Posted / shivam`
There are two types of polymorphism.
1. Compile time polymorphism - It is achieved by
overloading functions and operators
2. Run time polymorphism - It is achieved by overriding
virtual functions
Lets say you have a class that have many Load methods having
different parameters, this is called Compile time
polymorphism. Lets take another example where you have a
virtual method in the base class called Load with one
parameter and you have redefined its functioanlity in your
sub class by overriding base class Load method, this is
called Run time polymorphism.
| Is This Answer Correct ? | 6 Yes | 3 No |
Post New Answer View All Answers
What does <> mean pseudocode?
What are objects in oop?
Why multiple inheritance is not allowed?
explain sub-type and sub class? atleast u have differ it into 4 points?
What is Difference Between Inheritance and creating object and getting data? means Class A extends B{ B.getMethod();} (OR) Class A{ b obj=new B(); obj.getMethod(); }
What is Difeerence between List obj=new ArrayList(); and ArrayList obj=new ArrayList()?
write a program to find 2^n+1 ?
What is the advantage of oop over procedural language?
What is overloading in oop?
#include
How to improve object oriented design skills?
write a program to find 2 power of a 5digit number with out using big int and exponent ?
What is the diamond problem in inheritance?
What do you mean by abstraction?
What are oops methods?