Answer: No, we can not inherit the class defined with private constructor.
public class A:B
{
}
public class B
{
private B()
{
}
}
Here if we will compile this code error will come:
Namespace.B.B() is inaccessible due to its protection level
Asked In: Many Interviews |
Alert Moderator