This is a discussion on What is the difference between “overloading” and “overridding”? within the C and C++ Programming forums, part of the Software Development category; hi, cananyone tell difference between overloading & overridding Thanks, prasath.K...
| |||||||
| Register | FAQ | Members List | Calendar | Mark Forums Read |
| |||
| Function Overloading is the implementation of static polymorphism where same function name having different defenitions for different uses. Function overriding is applicable for dynamic polymorphism where where the function name and the definition are same but the function call is decided at the run time according to the type of object reference. |
| |||
| “overloading” is having the functions (methods) with the same name but different signatures. You can find overloading in non object oriented languages like C too. Overloading acts on different data types in different ways. “overriding” is having a methods with same name and same signature in a parent class and the child class. You cant find overloading in non-object oriented languages like C, because they dont have a class concept. Overriding acts on different object types in different ways. |
![]() |
| Thread Tools | |
| Display Modes | |
| |
Similar Threads | ||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Difference between function overloading and operator overloading | vigneshgets | C and C++ Programming | 6 | 10-23-2008 11:01 AM |
| 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 |
| Operator overloading in C++ | prasath | C and C++ Programming | 1 | 07-16-2007 06:51 AM |
| Diff of Overloading and Overriding | vigneshgets | C and C++ Programming | 1 | 05-18-2007 04:17 AM |