Constructor in asp .net

It is containing all topics related to Visual Basic, .NET Framework, Web Resource, GDI etc.
Ladva Nidhi
Posts: 295
Joined: Sat Sep 20, 2014 5:26 pm

Constructor in asp .net

Postby Ladva Nidhi » Thu Oct 16, 2014 5:24 pm

In what instances you will declare a constructor to be private?


Re: Constructor in asp .net

Postby Guest » Mon Aug 03, 2015 9:08 am

When we create a private constructor, we cannot create object of the class directly from a client. Therefore, you will use private constructors when you do not want instances of the class to be created by any external client.

Return to “Visual Basic .NET and ASP.NET”

Who is online

Users browsing this forum: No registered users and 1 guest