This is a discussion on Polymorphism within the C and C++ Programming forums, part of the Software Development category; Hi, here i share certain idea of polymorphism.it is main features of object oriented languages such as C++,JAVA ...
| |||||||
| Register | FAQ | Members List | Calendar | Mark Forums Read |
| |||
| Hi, here i share certain idea of polymorphism.it is main features of object oriented languages such as C++,JAVA Polymorphism means take more than one form.it actual meaning,to do additional operation.polymorphism divided as two categories 1.Compile time polymorphism 2.Run time polymorphism First one achieve by operator overloading.here '+' means to add the numbers and its use as concatinate two strings.so that it is called as operator overloding Another one(Run time polymorphism) achieve by virtual function The above things satisfy ur needs,if u need more details...Plz relply me Thanks, Prasath.K |
| Sponsored Links |
| |||
| Polymorphism is by far the most important and widely used concept in object oriented programming. Some of the widely used technologies and libraries like COM, MFC etc. have polymorphism as their foundation. If you look at all the original design patterns, almost every pattern uses polymorphism in its structure. In object-oriented programming, polymorphism refers to a programming language's ability to process objects differently depending on their data type or class. More specifically, it is the ability to redefine methods for derived classes. For example, given a base class shape, polymorphism enables the programmer to define different area methods for any number of derived classes, such as circles, rectangles and triangles. No matter what shape an object is, applying the area method to it will return the correct results. Polymorphism is considered to be a requirement of any true object-oriented programming language (OOPL). For more see in codeProject...
__________________ S.VinothkumaR Behind me is infinite power, Before me is Endless Possibility, Around me is Boundless Opportunity, Why should I fear! |
![]() |
| Thread Tools | |
| Display Modes | |
| |
Similar Threads | ||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| What are the different types of polymorphism? | Sabari | C and C++ Programming | 1 | 07-24-2007 05:04 AM |