C++ : Why can I expose private members when I return a reference from a public member function?
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