1
Reply

Can we inherit class that contains only one private constructor?

Deepak Srivastava

Deepak Srivastava

Oct 28, 2012
1.6k
0

    No. please check below example class Test1 {private Test1(){} } class Test2 : Test1 { }Error: .Test1.Test1()' is inaccessible due to its protection level

    Ravi Panara
    November 06, 2012
    0