Deepak Srivastava
Can we inherit class that contains only one private constructor?
By Deepak Srivastava in C# on Oct 28 2012
  • Ravi Panara
    Nov, 2012 6

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

    • 0


Most Popular Job Functions


MOST LIKED QUESTIONS