IT Community - Software Programming, Web Development and Technical Support

Diff of Overloading and Overriding

This is a discussion on Diff of Overloading and Overriding within the C and C++ Programming forums, part of the Software Development category; Hi pals can u brief me what is the difference between overloading and overriding?...


Go Back   IT Community - Software Programming, Web Development and Technical Support > Software Development > C and C++ Programming

Register FAQ Members List Calendar Mark Forums Read
  #1 (permalink)  
Old 05-18-2007, 04:03 AM
vigneshgets vigneshgets is offline
D-Web Genius
 
Join Date: Mar 2007
Posts: 904
vigneshgets is on a distinguished road
Cool Diff of Overloading and Overriding

Hi pals can u brief me what is the difference between overloading and overriding?
Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Sponsored Links
  #2 (permalink)  
Old 05-18-2007, 04:17 AM
vadivelanvaidyanathan vadivelanvaidyanathan is offline
D-Web Genius
 
Join Date: Feb 2007
Posts: 803
vadivelanvaidyanathan is on a distinguished road
Default Re: Diff of Overloading and Overriding

Overloading refers to the selection of multiple signatures of functions
of the same name
A(int x);
A(std::string s);
A(double d);
is overloading the function name A.

Overriding refers to functions that have the same signature as a
virtual function in the base class
class B {
virtual void V();
};

class D : public B {
viod V();
};

D::V overrides B::V.

-V.Vadivelan
Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Difference between function overloading and operator overloading vigneshgets C and C++ Programming 8 12-17-2008 07:21 PM
Overloading and overriding vijayanand Java Programming 1 09-21-2007 12:25 AM
What is the difference between “overloading” and “overridding”? Arun C and C++ Programming 1 07-20-2007 07:46 AM
What is the difference between “overloading” and “overridding”? prasath C and C++ Programming 2 07-17-2007 09:12 AM
Operator overloading in C++ prasath C and C++ Programming 1 07-16-2007 06:51 AM


All times are GMT -7. The time now is 07:17 PM.


Copyright ©2004 - 2007, DiscussWeb. All Rights Reserved.

SEO by vBSEO 3.0.0