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 assembly