Function Overriding in C++ | Inheritance | OOP in C++ programming

preview_player
Показать описание
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
Комментарии
Автор

Hey Guys, if you want more such tech educational videos on this channel then please support me by subscribing to this channel & also share it with your friends as it helps me create more content just for you ✌

SimpleSnippets
Автор

You explain it in weird way, But example is exactly what I see long time ago. Many other peoples are teaching it in wired way, and it don't have sense.
You're example show me that essence.

maximo
Автор

Finally, find a good channel to study😌

mehak
Автор

you have no clue how helpful this is for me!!!! thank you tanmay and dont stop sharing you knowledge ever

jayashreesampath
Автор

Wow! your explanations is so clear! Thank you

rahalhettiarachchi
Автор

You are the king man thank you from Ghana

mert
Автор

Really a good explanation, way better then our professor

arbabmaalik
Автор

your videos teach us a lot..but one suggestion is that, include why we need that this in our programme...what is the use of functin overroaling or overrindg or inheritence or anything....
may be you can tell in day to day coding use...in your video..
this helps you to give viewers a good grip on where to use...
hope you would consider this ...

bhanuteja
Автор

great video, thank you! Answers what i was looking for!

tonykososki
Автор

Great channel...explain clearly every single topic..

Shiviworld
Автор

U deserve more views bro 👌 excellent explanation

monarch
Автор

thankx bro overriding concept is cleared now

hiteshkumar
Автор

Thanks.. Good Explanation. Subscribed.

adhityagn
Автор

You have given semicolon while giving a basic example for Data function in base and derived

AKSHATADIGHE
Автор

The example should have been the one with figures and areas, not the concept already saw on diagrams before! Just an advice, great videos! Thanks :)

naeroforceofficial
Автор

Awesome guide me how i can improve my vocabulary

ashishkushwaha
Автор

DerivedClass obj = DerivedClass();
BaseClass obj = DerivedClass();
wats this can you explain and how it is suppose to transfer the control to the base function
i read it somewhere else

TheAdityaVerma
Автор

speaking speed is too fast== anyway this really helps me a lot! thank you!

ichi_fattv
Автор

About the explanation before the coding. Can we access the function while creating object from the Base class and not the Derived class?

ivankocevski
Автор

great teacher .love the way you do it..
can you just add some more practical examples from dev cpp.

aasimistic