biswarup ghosh
what is a private constructor for a class ? what is its need ?
By biswarup ghosh in .NET on Feb 23 2010
  • Dumkal Kom
    Apr, 2015 12

    When a class is containing all the members static, we no need of creating an object of that class. We can directly access members using dot(.) operator with that class. So, to prevent the class being created an object, we use private constructor.

    • 0
  • Dumkal Kom
    Apr, 2015 12

    When a class is containing all the members static, we no need of creating an object of that class. We can directly access members using dot(.) operator with that class. So, to prevent the class being created an object, we use private constructor.

    • 0


Most Popular Job Functions


MOST LIKED QUESTIONS