|
-
October 14th, 2011, 03:39 PM
#1
difference between polymorphism and overloading
Hi
The passage quoted below is from a book. I'm still not clear about the distinction between 'polymorphism' and 'overloading'. Could you please let me know how to differentiate between the two? Thanks.
Using operators or functions in different ways, depending on what they are operating on, is called polymorphism (one thing with several distinct forms). When an existing operator, such as + or =, is given the capability to operate on a new data type, it is said to be overloaded. Overloading is a kind of polymorphism; it is also an important feature of OOP.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|