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 an example.

Answer Posted / iqra

Polymorphism indicates the ability of an object to have methods with the same name but the different contents.
For example: two command buttons on a form might both have paint method.
The code in each object is different altough the name of method is the same

Is This Answer Correct ?    0 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Why do pointers exist?

1085


How to handle exception in c++, For example in a functions i am assigning memory to some variables and also in next instructions in am dividing one variable also. If this functions generates a error while allocating memory to those variable and also while dividing the variable if i divide by zero then catch block how it will identify that this error has cone from perticular instruction

2133


Why is oop useful?

1100


What is an advantage of polymorphism?

1091


What are the three parts of a simple empty class?

2046


Where is pseudocode used?

1098


why reinterpret cast is considered dangerous?

2387


What is polymorphism and why is it important?

1040


What is encapsulation c#?

1075


What is the difference between encapsulation and polymorphism?

1101


What is the difference between a mixin and inheritance?

985


class type to basic type conversion

2398


What is difference between inheritance and polymorphism?

1021


What is debug class?what is trace class? What differences are between them? With examples.

2188


Why do we use encapsulation in oops?

1028