Friend functions and classes in C++ (Programming for beginners)
CodeBeauty CodeBeauty
273K subscribers
102,792 views
0

 Published On Premiered Dec 21, 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.

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

In programming, like in real life, exists the concept of friendship. In the same way that your friends in real life can access private areas of your life (that are inaccessible to other people), in programming, a friend function or a friend class can access private and protected members of a specific class.

In this video, you'll learn how to work with friend functions and classes, friend functions and classes common uses, as well as the most important tips related to friend functions and friend classes.

And at the end, you can find a homework task in order to practice programming on your own.
The solution for that task will be pinned in the comment.

☕ 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. You can use the link below 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! ❤️😇

Contents:
00:00 - What are friend functions
00:52 - Best extension for Visual Studio C++
02:10 - Let's create a problem
07:19 - Solving the problem with friend functions
10:37 - Multiple friend functions
11:28 - Friend classes
14:48 - Important tips about friend functions and classes
16:22 - Homework (operator overloading and friend functions)

Videos mentioned in this tutorial that you should watch:
Must know Visual Assist features -    • My top 5 Visual Assist features! Best...  
Encapsulation -    • C++ OOP - What is encapsulation in pr...  
Inheritance -    • C++ OOP - What is inheritance in prog...  
Operator overloading -    • C++ Operator Overloading beginner to ...  

Add me on:
Instagram 📸 -   / truecodebeauty  
Twitter 🐦-   / truecodebeauty  

show more

Share/Embed