ok, let me start with an example.This is my base class in another assembly
namespace BL
{
public class BasicClass
{
protected internal void func()
{
//Code Logic
}
}
}
Now this is my derived class in another assembly
namespace DL
{
public class DerivedClass:BasicClass
{
private void hello()
{
func();
}
}
}
I'm able to call the func()
from base class , hence it shows that the protected
access modifier property but what about the internal
access modifier property.Should it be allowed to access func()
inside another assembly since its declared internal.If so then why call it protected internal
and not simple protected