Welcome to pickSourcecode.com Login | Register    
pickZy.com
 Home  | search  | games  | General  | C  | C++  | Java  | Php  | Networking  | Visual Basic  | VC++  | Win32  | MFC  | JavaScript  | Jobs  | JavaScript  | Post jobs
What is Polymorphism?       Share
2008-10-14 |  sudhadevaraj  | Viewed: 332  |    0


Polymorphism is in short the ability to call different functions by just using one 
type of function call. It is a lot useful since it can group classes and their 
functions together. Polymorphism means that the same thing can exist in two 
forms. 
This is an important characteristic of true object oriented design - which means 
that one could develop good OO design with data abstraction and inheritance, but 
the real power of object oriented design seems to surface when polymorphism is used.

In C++, polymorphism means that 
if the same message is sent to different objects, 
the object’s behavior depends on the nature of the object itself. This is sort of 
obvious 
for completely different objects, but the concept starts making sense when 
combined with inheritance.


Latest topics
The Preprocessor  Viewed: 247
Input/Output Library  Viewed: 248
Type Casting  Viewed: 249
What is Multiple Inheritance?  Viewed: 250
Objects  Viewed: 254
Constructors n deconstructors!  Viewed: 254
What is conversion constructor?  Viewed: 256
Definition of OOP:  Viewed: 258
What are C++ storage classes?  Viewed: 261
What is conversion operator?  Viewed: 276

Comments:





Submit comment's

Type:

User Comment's:

Submitted By:
Prof: Software
Tech: C ,Cpp
Send Mail: jmcdoss_05



Related topics
What is Encapsulation?
What is Data Abstraction?
What is Inheritance?
What is Polymorphism?
What is Message passing
What is Extensibility?
What is Persistence?
What is Delegation and Genericity?
What is Multiple Inheritance?
what is memory leak?how to avoid that?
What are all the implicit member functions of the class?
What is conversion constructor?
What is conversion operator?
What are C++ storage classes?
What are storage qualifiers in C++ ?

Related References
cpp - 5) list and iterator
cpp - 6) list and vector example.2
cpp - 7) example"fill, copy, list" statement
cpp - 8) list and set
cpp - glib simple glist program
cpp linked list
cpp linked list , node
cpp list sample program
cpp list sample program 2
cpp template , complete list tutorials
typedef list::iterator intlistitor; cpp sample
cpp iterator sample, istream_iterator
cpp window , list, for_each, functional tutorials
nonmutating cpp #pragma warning (disable : 4786) ,vector example
cpp list to be sorted in ascending order using quick sort

Web site contents © Copyright 2007, All rights reserved.
Help | Terms and Conditions | Privacy Policy | About Us