C# (Sharp) Programming Language Question:

Constructor in C#.

Tweet Share WhatsApp

Answer:

Constructor is a method in the class which has the same name as the class (in VB.Net its New()). It initialises the member attributes whenever an instance of the class is created.

Download C# (Sharp) Programming Language PDF Read All 163 C# (Sharp) Programming Language Questions
Previous QuestionNext Question
What are the two kinds of properties.Describe ways of cleaning up objects in C#.