Do all the protected members of super class are inherited to the sub class when we are deriving it in public visible mode or are there any exceptions.

Everything gets inherited and the public, protected or private accessibility just says if the derived class can use something or not.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.