We need to ensure that the private member variables inherited from the base class are initialized when a protected member variable of the derived type executes.
There are commonly three access specifiers, namely, Public member variable, private member variable, and protected member variable.
All class members are private by default if you do not specify the access specifier.
Learn about private member variables here:
https://brainly.com/question/14099393
#SPJ4