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 are the methods in c#?

965


Explain the difference between boxing and unboxing.

1016


what is the difference between the debug class and trace class?

1043


Explain the importance and use of each, version, culture and publickeytoken for an assembly.

932


How do you escape a character?

945


What does an indexer do?

895


What are Memory foot print of an exe?

1024


Explain the concepts of cts and cls(common language specification).

983


What is a web service in c#?

1147


Are c and c# the same thing?

871


Why do we overload constructors?

905


Explain about finalize method?

945


How do I enforce const correctness in c#?

945


Is null or empty in c#?

965


What is sorted list in c#?

900