Saturday, 06 June, 2026г.
russian english deutsch french spanish portuguese czech greek georgian chinese japanese korean indonesian turkish thai uzbek

пример: покупка автомобиля в Запорожье

 

Friend functions and classes in C++ (Programming for beginners)

Friend functions and classes in C++ (Programming for beginners)У вашего броузера проблема в совместимости с HTML5

???? Download Visual Assist here: https://bit.ly/VisualAssistDownload

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.

???? Download a free e-Book about modern C++ and Lambda Expressions: https://bit.ly/freeCppE-Book

☕ I recently created the option for you to buy me a coffee, so if you enjoy my content and find it useful consider that small gesture of gratitude for all the hard work that I put into these videos. That would mean a lot to me! ❤️❤️❤️
https://bit.ly/CodeBeauty_BuyMeACoffee
Of course, don’t feel pressured if you can’t, I will continue posting free educational content for you nevertheless. ????

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 - https://youtu.be/so1o7AoP49A

Encapsulation - https://youtu.be/a8ZB-TPB6EU

Inheritance - https://youtu.be/-W-TYjL0aFE

Operator overloading - https://youtu.be/BnMnozsSPmw

Follow me on other platforms:
Instagram ???? - https://www.instagram.com/TrueCodeBeauty
Twitter ????- https://twitter.com/TrueCodeBeauty

Мой аккаунт