C++ Operator Overloading beginner to advanced (in-depth explanation)
CodeBeauty CodeBeauty
273K subscribers
230,626 views
0

 Published On Premiered Jun 30, 2021

📚 Learn how to solve problems and build projects with these Free E-Books ⬇️
C++ Lambdas e-book - free download here: https://bit.ly/freeCppE-Book
Entire Object-Pascal step-by-step guide - free download here: https://bit.ly/FreeObjectPascalEbook

🚀📈💻🔥 My Practical Programming Course: https://www.codebeautyacademy.com/
Experience the power of practical learning, gain career-ready skills, and start building real applications!
This is a step-by-step course designed to take you from beginner to expert in no time!
💰 Here is a coupon to save 10% on your first payment (CODEBEAUTY_YT10).
Use it quickly, because it will be available for a limited time.

In this video, I'll explain C++ Operator Overloading from beginner to advanced and teach you about operator functions.
In C++ overloaded operators are functions with special names: the keyword "operator" followed by the symbol for the operator being defined (ex. operator+, operator-, operator==, etc.)

Which operators can be overloaded?
- Most operators can be overloaded, the exceptions are . (dot) :: ?: sizeof
There are two types of operator functions: global operator functions and member operator functions.
In the video, I'll teach you about both and I'll also demonstrate how to do operator overloading for the most important operators and explain common errors that happen with operator overloading

👉 Download Visual Assist here: https://bit.ly/VisualAssistDownload
(It improves Visual Studio experience by quickly identifying and fixing code errors)

🎁 Download PVS-Studio for free with #code_beauty promo code: https://bit.ly/PVS-StudioFreeCB1
▶️ PVS-Studio YouTube channel –    / @pvsstudio_channel  
🇫 PVS-Studio Facebook group -   / staticcodeanalyzer  

☕ If you've found my content helpful and would like to support me, you now have the option to buy me a coffee or a cookie! It's a small gesture of gratitude that means a lot to me and helps me keep creating free educational videos for you. Use the link to make a contribution: https://bit.ly/CodeBeauty_BuyMeACoffee
However, please don't feel obligated to do so. I appreciate every one of you, and I will continue to share valuable content with you regardless of whether you choose to support me in this way. Thank you for being part of the Code Beauty community! ❤️😇

C++ Structures -    • C++ Structures for beginners (explain...  
C++ Classes and constructors -    • C++ OOP - Introduction to classes and...  

Contents:
00:00 - Intro
01:01 - This is how I analyze my code
01:54 - Introduction to operator overloading and operator functions in C++
07:29 - Ostream operator overloading (insertion operator)
18:12 - Overloading += operator
21:35 - Different types of operator functions (global vs member functions)
23:57 - Ostream operator overloading (insertion operator)
26:57 - Overloading -= operator
28:34 - C++ operator overloading common errors
34:16 - Results of the PVS-Studio code analysis

Follow me on other platforms:
Instagram 📸 -   / truecodebeauty  
Twitter 🐦-   / truecodebeauty  

******CODE IS IN THE COMMENTS******

show more

Share/Embed