Lec#76 Difference between Function overloading and Overriding | C++ Programming In Urdu

preview_player
Показать описание
#Overloading
#Overriding
Lec#76 Difference between Function overloading and Overriding | C++ Programming In Urdu
In the above lecture we are going to discuss difference between Function overloading and Overriding in C++ Programming.

Function Overloading
The process of declaring multiple functions with same name but different types of parameters is known as Function overloading. The function with same name must differ in one of the following:
• Number of parameters.
• Type of parameters.
• Sequence of parameters.
Function Overriding
Function overriding in C++ programming is the process of declaring a member function in the child class with same name and same parameter as parent class.

Difference between Overloading and Overriding in C++
1. Function Overloading happens in the same class when we declare same functions with different arguments in the same class. Function Overriding is happening in the child class when child class overrides parent class function.
2. In function overloading function signature should be different for all the overloaded functions. In function overriding the signature of both the functions (overriding function and overridden function) should be same. Overloading happens at the compile time that’s why it is also known as compile time polymorphism while overriding happens at run time which is why it is known as run time polymorphism.
3. In function overloading we can have any number of overloaded functions. In function overriding we can have only one overriding function in the child class.

Please Subscribe our channel to get more lectures like this.

In the following series we are going to start new lecture series on how to learn learn c++ programming in urdu. Here you can find c++ programming in urdu full course, c++ programming exercises, c++ programming exercises for beginners, c++ practical programming exercises, c++ practice exercises, c++ advanced exercises, object oriented programming in c++ for beginners, object oriented programming in c++ by robert lafore, principles of object oriented programming in c++ and much more. My aim is to spread Computer Science knowledge everywhere and here we are discussing C++ tutorial in Urdu.

Useful Links For Programming Courses:

To watch full C++ Programming Full Course in Urdu playlist

To watch full Basic C++ practical Exercises playlist

To watch array and structures in C++ Programming

To watch Java Programming Lectures

Also Visit Our Blog:
Visit Our Facebook Pages:

Useful Links For Programming Courses:

To watch full C++ Programming Full Course in Urdu playlist

To watch full Basic C++ practical Exercises playlist

To watch array and structures in C++ Programming

To watch Java Programming Lectures

Рекомендации по теме
welcome to shbcf.ru