Mukesh Kumar
Is it possible to restrict object creation?
By Mukesh Kumar in .NET on Sep 04 2017
  • Yogesh  Soppa
    Nov, 2017 22

    make your constructor private which is known as singleton pattern. Where there will be only one object created by developer.

    • 2
  • Mukesh Kumar
    Sep, 2017 4

    Yes By throwing error in constructer

    • 1
  • Mukesh Kumar
    Dec, 2017 7

    Yes, By throwing error

    • 0
  • Yogesh  Soppa
    Nov, 2017 22

    make your constructor private which is known as singleton pattern. Where there will be only one object created by developer.

    • 0