filmov
tv
Function Overriding in C++ | Inheritance | OOP in C++ programming
![preview_player](https://i.ytimg.com/vi/Zd_4xa071nc/maxresdefault.jpg)
Показать описание
Support Simple Snippets by Donations -
--------------------------------------------------------------------------------------------- In this video we will study and understand the concept of Function Overriding and compare with with Function Overloading and how they both are different from each other.
We will compare them theoretically and then we will also see a c++ program example of function overriding.
Function Overloading - Function overloading is a feature in C++ where two or more functions can have the same name but different parameters.
Function overloading can be considered as an example of polymorphism feature in C++
Function Overriding - If derived class defines same function as defined in its base class, it is known as function overriding in C++
If you create an object of the derived class and call the member function which exists in both classes (base and derived), the member function of the derived class is invoked and the function of the base class is ignored.
It enables you to provide specific implementation of the function which is already provided by its base class.
Simple Snippets Official Website -
Simple Snippets on Facebook-
Simple Snippets on Instagram-
Simple Snippets Google Plus Page-
Simple Snippets email ID-
UpSkill is an Ed-Tech Company / Coaching Centre for Information Technology / Computer Science oriented courses and offer coacing for various Degree courses like BSc.IT, BSc.CS, BCA, MSc.IT, MSc.CS, MCA etc.
Contact via email /call / FB /Whatsapp for more info
We also Provide Certification courses like -
Android Development
Web Development
Java Developer Course
.NET Developer Course
Check us out on Social media platforms like Facebook, Instagram, Google etc
--------------------------------------------------------------------------------------------- In this video we will study and understand the concept of Function Overriding and compare with with Function Overloading and how they both are different from each other.
We will compare them theoretically and then we will also see a c++ program example of function overriding.
Function Overloading - Function overloading is a feature in C++ where two or more functions can have the same name but different parameters.
Function overloading can be considered as an example of polymorphism feature in C++
Function Overriding - If derived class defines same function as defined in its base class, it is known as function overriding in C++
If you create an object of the derived class and call the member function which exists in both classes (base and derived), the member function of the derived class is invoked and the function of the base class is ignored.
It enables you to provide specific implementation of the function which is already provided by its base class.
Simple Snippets Official Website -
Simple Snippets on Facebook-
Simple Snippets on Instagram-
Simple Snippets Google Plus Page-
Simple Snippets email ID-
UpSkill is an Ed-Tech Company / Coaching Centre for Information Technology / Computer Science oriented courses and offer coacing for various Degree courses like BSc.IT, BSc.CS, BCA, MSc.IT, MSc.CS, MCA etc.
Contact via email /call / FB /Whatsapp for more info
We also Provide Certification courses like -
Android Development
Web Development
Java Developer Course
.NET Developer Course
Check us out on Social media platforms like Facebook, Instagram, Google etc
Комментарии