Welcome, Guest Ohm namah shivoy
www.faqpanel.com
Home | ASP.Net | C-Sharp | Winforms | MS SQL | AJAX | XML | .Net Training*** | Search
Invite friends 
Extras 
VS Tips & Tricks
Top 10 .Net Tools
Special folders in ASP.Net
VS Find Combobox
 C-Sharp (C#) Interview Questions and Answers
What are Constructors?
We know that all objects that are created on a class must be given initial values. This can be done in three ways -
1. Using the dot operator to access the instance variables and then assigns values to them individually.
2. Take the help of a function like GetData to initialize each object individually using statement like : rect1.GetData(5, 8);
3. Using constructors.

Constructors are special type of methods, that enables an object to initialize itself when it is created.
Constructors have the same name as the class itself. Secondly, they do not specyfy a return type, not even void. This because they do not return any value.

Constructors are usually public because they are provided to create objects. However they can also be declared as private or protected.
What is BOXING and UNBOXING in C#?
What is type safety?
What is the Interface (C#)?
What is the difference between // comments, /* */ comments and /// comments?
What are Destructors?
What is the difference between the System.Array.CopyTo() and System.Array.Clone()?
What anonymous methods in C# 2.0?
What is the partial classes?
Explain the 3 types of properties in C# (c-sharp)?
What happens in memory when you Box and Unbox a value-type?