Junior
From PDF
OOP
C# OOP
What is the use of internal, protected, and protected internal?
- Internal → Accessible only within the same assembly.
- Protected → Accessible in the class and derived classes.
- Protected Internal → Accessible in derived classes or within the same assembly.
Example:
protected string accountType; // accessible in derived classes
internal string branchCode; // accessible within same assemblyShare this Q&A
Share preview image: https://www.toolliyo.com/images/toolliyo-logo.png