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.

    • 3
  • 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.

    • 1
  • Mukesh Kumar
    Sep, 2017 4

    Yes By throwing error in constructer

    • 1
  • Shiva Mogilicharla
    May, 2018 25

    Yes

    • 0


Most Popular Job Functions


MOST LIKED QUESTIONS