features of OOPS

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


Please Help Members By Posting Answers For Below Questions

What is the advantage of oop over procedural language?

621


what is graphics

2004


What is a class in oop?

593


Can bst contain duplicates?

662


What are the three main types of variables?

597






Can we define a class within the interface?

549


What is object in oop?

671


design a c++ class for the chess board,provide a c++ class definition for such class(only class definition is required)

6136


Write A Program to find the ambiguities in Multiple Inheritance? How are they resolved.(Virtual Functions)

3550


2. Give the different notations for the class.\

1582


Why do we use polymorphism?

571


Can main method override?

580


What are the data types in oop?

598


Why is polymorphism needed?

587


write string class as your own class in java without using any built-in function

1970