C++ : Why can I expose private members when I return a reference from a public member function?

Channel:
Subscribers:
76,600
Published on ● Video Link: https://www.youtube.com/watch?v=ZKur8CL_mMw



Duration: 1:12
0 views
0


C++ : Why can I expose private members when I return a reference from a public member function?
To Access My Live Chat Page,
On Google, Search for "hows tech developer connect"

As promised, I have a secret feature that I want to reveal to you.
This is a YouTube's feature which works on Desktop.
First, Ensure that the video is playing before proceeding.
Next, enter the letters 'awesome' on your keyboard.
Your YouTube progress indicator will turn into a shimmering rainbow.

An introduction to myself in a few words,
Greetings, my name is Delphi.
Let me help you get the answers you need to your questions.
C++ : Why can I expose private members when I return a reference from a public member function?
If you have more specific query you can comment or chat with me and let me know your queries.
We encourage you to leave a comment below if you have an answer or insights on the answer.
A 'heart' from me is a way of showing appreciation for your answer.
I private public member reference Why a expose a from function? C++ I when can : return members




Other Videos By Hey Delphi


2023-04-20SQL : What's the difference between "LIKE" and "=" in SQL?
2023-04-20HTML : Do Windows 8 JavaScript apps support GIF images?
2023-04-20C++ : How to build a full path string (safely) from separate strings?
2023-04-20MySQL : How can I build a condition based query in Laravel using eloquent
2023-04-20Android : How to add a TextView to a LinearLayout dynamically in Android?
2023-04-20Android : How to add an image in email body
2023-04-20HTML : How to select existing fabric canvas
2023-04-20R : How to perfectly align an unequal number of plots (ggplot2,gridExtra)
2023-04-20SQL : What SQL coding standard do you follow?
2023-04-20HTML : How to build a full screen html 5 web app?
2023-04-20C++ : Why can I expose private members when I return a reference from a public member function?
2023-04-20C# : How do I determine darker or lighter color variant of a given color?
2023-04-20SQL : What will be the SQL query for this problem?
2023-04-20R : How to convert data.frame column from Factor to numeric
2023-04-20NodeJS : How to check modified fields in pre/post update hook in Mongoose.js
2023-04-20C# : How to do #ifdef in C#
2023-04-20R : How to increase number of breaks on x axis in echarts4r plot?
2023-04-20C# : Why .NET String is immutable?
2023-04-20MySQL : When storing a MySQL connection string in App.config, what value should the providerName pro
2023-04-20C++ : How should I setup a C++ project on github so that it is portable?
2023-04-20C++ : How to initialize with multiple return values in c++(0x)