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

Explain constructor.

Answer Posted / kamlesh sharma

constructors are special type of member functions of class
which is used to initilized a object

1. constructors are as same name of the class
2. don't have any return type
3. don't return any value


Types
1 default constructor
2 parametrized constructor and
3 copy constructures

constructors can be overload

Is This Answer Correct ?    15 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Why do we use virtual methods in c#?

909


What is the difference between abstract and abstraction?

812


What is the difference between CreateObject() and GetObject()?

1042


Can destructors have access modifiers?

919


What is the use of convert toint32 in c#?

928


What is the difference between parse and tryparse in c#?

960


What is data hiding in c#?

862


What is the default value of string in c#?

966


Can we use "this" command within a static method?

936


What can we do to handle multiple exceptions?

982


Can property be private in c#?

835


What is the importance of closing an ado.net application?

856


How do I develop c# apps?

873


What is the difference between a private assembly and a shared assembly?

972


Can a static class contain non static members?

940