Get premium membership and access questions with answers, video lessons as well as revision papers.

Explain what protected means in programming world.

      

Explain what protected means in programming world.

  

Answers


Davis
Members declared as protected are private to the base class but can be inherited and accessed by any derived class.when used as an inheritance access specifier,protected cause all public and protected members to the derived class.
Githiari answered the question on February 5, 2018 at 08:40


Next: When a base class is inherited as public by the derived class, what happens to its public members?What happens to its private members? If...
Previous: Given the following C++ fragment, in what order are the constructor functions called? class myclass: public A, public B, public C {...

View More Computer Studies Questions and Answers | Return to Questions Index


Learn High School English on YouTube

Related Questions