C++ : Why can a derived class not access a protected member of its base class through a pointer to b

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



Duration: 1:11
0 views
0


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




Other Videos By Hey Delphi


2023-04-13HTML : Why does Wicket changes the id of the html elements?
2023-04-13SQL : How to print the @SqlQuery annotation in JDBI sql api
2023-04-13jQuery : Which is more efficient: .parent().parent().parent() ~or~ parents(".foo") ~or~ closest(".fo
2023-04-13SQL : How to design a star schema
2023-04-13jQuery : What does event binding mean?
2023-04-13C# : How to start the application directly in system tray? (.NET C#)
2023-04-13jQuery : How to fixed the last column of a responsive DataTable
2023-04-13MySQL : Does a transaction stop all race condition problems in MySQL?
2023-04-13MySQL : How to import mysql dump to SQLyog
2023-04-13C++ : Is it permissible for standard library implementation to have class definition that is differe
2023-04-13C++ : Why can a derived class not access a protected member of its base class through a pointer to b
2023-04-13HTML : Can CSS truly override the order of HTML elements on a page?
2023-04-13jQuery : How to append script /script in JavaScript?
2023-04-13C++ : Why are include directives on top of header files?
2023-04-13jQuery : Is it possible to remove individual values from an file input multiple element?
2023-04-13C++ : Is pass-by-value a reasonable default in C++11?
2023-04-13CSS : Is that possible to set gradient on text color?
2023-04-13CSS : How to Make Select Element be Transparent in Chrome?
2023-04-13C++ : What is the difference between the CvCapture structure and the VideoCapture structure?
2023-04-13Android : How do I set a different color for the pressed state of the button?
2023-04-13jQuery : How to call javascript from Jquery function?