C++ Protected Access Specifiers

C++ Protected access Specifiers


C++ Protected Access Specifier:
In Protected Access Specifier, The access control of the protected members is similar to that of private members and more significant in inheritance
Example
Output
https://lh5.googleusercontent.com/Jvl-J4SgjoSRgYhtDnG-L6Ln5A754VtuplVKH2GDoRFKvyvh2AZtardK8e3_6LsVHYxzwh8f2cwFVtmBRoP2qvr6opYu4seZTCDac0r8MJWgygFNh6HPGkDRoXMP7RmRv4KgDYPo