C# Protected Internal Access Specifiers

protected-internal
In this chapter you will learn:

  • What is protected internal access specifier?
  • What is the boundary of protected internal access specifier?
  • How to use protected internal access specifier in C# programming?

The protected internal access specifier allows its members to be accessed in derived class, containing class or classes within same application. However, this access specifier rarely used in C# programming but it becomes important while implementing inheritance.

Example:

Output

Enter your name:     Steven Clark

My name is Steven Clark
__

Summary

In this chapter you learned about protected internal access specifier in C#. In next chapter you will learn get set modifier in C#.



Leave a Reply

Your email address will not be published. Required fields are marked *