Interviews1 answer
Can we inherit class that contains only one private constructor?
1 Answer
No.
please check below example
class Test1
{
private Test1()
{
}
}
class Test2 : Test1
{
}
Error:
.Test1.Test1()' is inaccessible due to its protection level
Ravi PanaraPosted Nov 5, 2012, 11:06 PM EST
