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
The Performance of the viewstate varies depending on the type of server control to which it is applied. The Text Box, Label,   RadioButton,CheckBox, and HyperLink are server contro

Accepting a List of 5 Items - C# Program Hello, I've been trying so many codes for this but those codes didn't work well. Please write the code for Accepting a List of 5 Items

What is CAR (Causal Analysis and Resolution)? The basic purpose of the CAR is to analyze all the problems, defects, and good practices/positive triggers in projects, perform a

Print Floyd's Triangle - C# Program I am unable to make out how to print Floyd's Triangle in C# language. Can anyone suggest me any example for this.

Describe IUKNOWN interface All COM object supports atleast one interface, that is  IUnknown interface. All interfaces are the classes, derived from the base class IUnknown. Eve

How can we load multiple tables in a DataSet? objCommand.CommandText = "Table1" objDataAdapter.Fill(objDataSet, "Table1") objCommand.CommandText = "Table2" o

What is Dataset object ? The DataSet gives the basis for the disconnected storage and manipulation of the relational data. We fill it from the  data store, work with it while d

Develop PC Cleaner Software Project Description: We are seeking experienced developer who can develop Registry Cleaner / PC Cleaner software for us. Software should be like c

What is the difference between Stored Procedure (SP) and User Defined Function (UDF)? Some of major differences between a stored procedure and user defined are as follows:-

Can we get a strongly typed resource class? You can now get strongly types classes in the VS.NET intellisense as shown in the figure below. Figure: - Strongly typed re