Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...

What is polymorphism ? Explain with examples

Answer Posted / k.r.sukumar

Polymorphism means "A single function which is used for
different purposes depending upon the parameters passed"

for eg;
Area is the function name which is used for
calculating areas of the rectangle, triangle and even more.
from this persepective we conclude that area is the single
function which is used for calculating different ones.
area(a);---> Area of the square

area(l,b);---> Area of the rectangle.

Is This Answer Correct ?    22 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What are the two different types of polymorphism?

1086


Why do we use polymorphism?

1009


What are the 3 pillars of oop?

1099


What is class encapsulation?

1030


What is constructor overloading in oop?

1078


What does and I oop and sksksk mean?

1108


What is the advantage of oop over procedural language?

1006


Explain the concepts involved in Object Oriented programming.

1144


Plese get me a perfect C++ program for railway/airway reservation with all details.

3839


i am getting an of the type can not convert int to int *. to overcome this problem what we should do?

2260


How long to learn object oriented programming?

1029


What is the difference between procedural programming and oops?

1059


if i have same function with same number of argument but defined in different files. Now i am adding these two files in a third file and calling this function . which will get called and wht decide the precedence?

3408


Which method cannot be overridden?

1016


can we make game by using c

4036