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 is the advantage of oop over procedural language?
what is graphics
What is a class in oop?
Can bst contain duplicates?
What are the three main types of variables?
Can we define a class within the interface?
What is object in oop?
design a c++ class for the chess board,provide a c++ class definition for such class(only class definition is required)
Write A Program to find the ambiguities in Multiple Inheritance? How are they resolved.(Virtual Functions)
2. Give the different notations for the class.\
Why do we use polymorphism?
Can main method override?
What are the data types in oop?
Why is polymorphism needed?
write string class as your own class in java without using any built-in function