C++ : Why can a derived class not access a protected member of its base class through a pointer to b
C++ : Why can a derived class not access a protected member of its base class through a pointer to base?
To Access My Live Chat Page,
On Google, Search for "hows tech developer connect"
I have a hidden feature that I promised to tell you about.
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.
It will change your youtube progress bar into a flashing rainbow.
Let me give you a brief introduction of who I am,
Nice to meet you, I am Delphi.
I help you answer your questions.
C++ : Why can a derived class not access a protected member of its base class through a pointer to base?
I am available to answer your more detailed queries via comments or chat.
If you have an answer or any relevant information to share, please comment below.
A 'heart' from me will indicate my appreciation for your answer.
to base? base a through access class derived protected its not C++ member a : can pointer Why of a class