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 / santosh mohapatra

Polymorphism is a Greeck word which can be divided into 2
sub word i.e., poly stands for many and morphism stands for
forms. It is one of the essential feature of OOP's. This
feature is mainly used for the member functions of a class.
THe polymorphism is used to overload a function in a same
memory location i.e. the reusability of a function with
different parameters.

Is This Answer Correct ?    7 Yes 3 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Why is encapsulation used?

988


What are different types of JVM's? for example we use dalvik jvm for android then what about the remaining operating systems?

2126


Which type does string inherit from?

1100


program for insertion ,deletion,sorting in double link list

2681


hi all..i want to know oops concepts clearly can any1 explain??

2123


What are the 4 main oop principles?

1219


How do you answer polymorphism?

1056


Whats oop mean?

1032


When not to use object oriented programming?

1096


What does <> mean pseudocode?

1180


What do you mean by variable?

1034


What is polymorphism used for?

1060


What is the real time example of inheritance?

1141


class CTest { public: void someMethod() { int nCount = 0; cout << "This is some method --> " << nCount; } }; int main() { CTest *pctest; pctest->someMethod(); return 0; } It will executes the someMethod() and displays the value too. how is it possible with our creating memory for the class . i think iam not creating object for the class. Thanks in Advance... Prakash

2280


What is an advantage of polymorphism?

1091