Explain the concept of constructor, DOT NET Programming

Explain the concept of constructor?

Constructor is a special method of a class, which is called automatically when the instance of a class is formed. It is created with the same name as the class and initializes all class members, whenever you access the class. The major features of a constructor are as follows:

Constructors do not have any return type

Constructors are always public

It is not important to declare a constructor; it is invoked automatically by .NET Framework.

 

Posted Date: 7/3/2013 8:35:27 AM | Location : United States







Related Discussions:- Explain the concept of constructor, Assignment Help, Ask Question on Explain the concept of constructor, Get Answer, Expert's Help, Explain the concept of constructor Discussions

Write discussion on Explain the concept of constructor
Your posts are moderated
Related Questions
What are the different types of joins? 1) INNER JOIN: The Inner join shows matches only when they exist in both the tables.For example, in the SQL below there are two tabl

Question: (a) Give three key differences between the DetailsView and FormView controls. (b) The ASP.NET 2.0 Framework introduces the idea of validation groups. How Valida

How to Enable ASP.NET polling? All our database side is configured in order to get the SQL Cache working in the ASP.NET side we require to do some configuration in the web.conf

Program for Solution of Linear Equations - C# Program Hello, I've been trying so many codes for this but those codes didn't work well. Please write a Program for solving Linea

Find out the Factorial - C# Program I've been trying so many codes for this but those codes didn't work well. Please write the code for find out the factorial of an integer nu

i am working on an project and my client needs it in 2 days.project is ready but don''t know how to make setup project including local sql database(.mdf) included in setup..

Difference between VB.NET and C# This is the main debatable issue in .NET community and everyone treat their languages like religion. It is a very important matter which lan

The Events are always public as they are meant to serve each one registering to it. But you can access modifiers in the events.You may have events with protected keyword which will


I am looking individuals who have industry experience working on Microsoft Technology and Jquery ( MVC 4.5 ), who will take live online session and give training through Team Viewe