Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...

Can we have private constructor in our class file. When we
are trying to create instance for the class will it create
or throw error regarding that?

Answer Posted / saiish bhat

ya,we have private constructor.but it wont throw an exception.

but u cant create an instance of p.c.

it is not possible to inherit from that class also.

ex:
private class a()
{

}

class b : a
{ }

Is This Answer Correct ?    1 Yes 2 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is dto c#?

943


Explain the difference between arraylist and array and in c#?

973


What is the difference between dictionary and hashtable in c#?

952


What is a multi line comment?

1003


What is predicate builder?

986


What is a cshtml file?

1195


What are the problem with .NET generics?

1041


Is c# a strongly-typed language?

1043


Wcf and what is difference between wcf and web services?

977


What are the advantages of interface in c#?

1003


List some of the common data providers for ado.net framework?

893


What is the data encapsulation?

934


What are sorted lists?

957


Is hashset ordered c#?

1015


Can interface have virtual methods in c#?

923