How to use protected function of base class in derived class?
public class A
{
protected void Test()
{
// some code....
}
}
public class B : A
{
public void Test2()
{
A obj = new A();
obj.Test(); // error thrown;
}
}
When i tried to use the Test function of base class. It is throwing error..